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:
Bharat Mediratta
2009-03-27 03:43:21 +00:00
parent d7719a7e72
commit 921f3a2eee
19 changed files with 27 additions and 28 deletions

View File

@@ -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"));
}
};