aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/themes/default/template/user_list.tpl2
-rw-r--r--admin/user_list.php1
2 files changed, 3 insertions, 0 deletions
diff --git a/admin/themes/default/template/user_list.tpl b/admin/themes/default/template/user_list.tpl
index 6cd7de900..380ca6f20 100644
--- a/admin/themes/default/template/user_list.tpl
+++ b/admin/themes/default/template/user_list.tpl
@@ -14,6 +14,7 @@ var missingUsername = "{'Please, enter a login'|translate}";
var allUsers = [{$all_users}];
var selection = [{$selection}];
+var pwg_token = "{$PWG_TOKEN}";
{/footer_script}
{footer_script}{literal}
@@ -241,6 +242,7 @@ jQuery(document).ready(function() {
return false;
}
method = 'pwg.users.delete';
+ data.pwg_token = pwg_token;
break;
case 'group_associate':
method = 'pwg.groups.addUser';
diff --git a/admin/user_list.php b/admin/user_list.php
index 3c0b6488d..ac88c4d60 100644
--- a/admin/user_list.php
+++ b/admin/user_list.php
@@ -96,6 +96,7 @@ $default_user = get_default_user_info(true);
$template->assign(
array(
+ 'PWG_TOKEN' => get_pwg_token(),
'NB_IMAGE_PAGE' => $default_user['nb_image_page'],
'RECENT_PERIOD' => $default_user['recent_period'],
'theme_options' => get_pwg_themes(),