mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-07-21 23:33:54 -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:
@@ -2,7 +2,7 @@
|
||||
<script type="text/javascript">
|
||||
update_blocks = function() {
|
||||
$.get("<?= url::site("admin/dashboard/reorder") ?>",
|
||||
{"csrf": "<?= access::csrf_token() ?>",
|
||||
{"csrf": "<?= $csrf ?>",
|
||||
"dashboard_center[]": $("#gAdminDashboard").sortable(
|
||||
"toArray", {attribute: "block_id"}),
|
||||
"dashboard_sidebar[]": $("#gAdminDashboardSidebar").sortable(
|
||||
|
||||
Reference in New Issue
Block a user