mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-13 02:20:17 -04:00
Put csrf token into Admin_View and Theme_View by default, then use it
directly wherever possible instead of access::csrf_token().
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
$(document).ready(function() {
|
||||
select_toolkit = function(el) {
|
||||
if (!$(this).hasClass("gUnavailable")) {
|
||||
window.location = '<?= url::site("admin/graphics/choose/__TK__?csrf=" . access::csrf_token()) ?>'
|
||||
window.location = '<?= url::site("admin/graphics/choose/__TK__?csrf=$csrf") ?>'
|
||||
.replace("__TK__", $(this).attr("id"));
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user