aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/admin_multi_view/is_admin.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-05-16 05:10:12 +0000
committerrvelices <rv-github@modusoptimus.com>2007-05-16 05:10:12 +0000
commit9c856a2fd0341ca710b2f0befb3289ac797d64d2 (patch)
treeef9e9ffe3f5ff887bfdfa1f380e334043e144054 /plugins/admin_multi_view/is_admin.inc.php
parent35858a70a0b9518d3395b4a0883381b8804281cd (diff)
merge svn 2016 from trunk to branch-1_7
admin multi view improvement: allow admins to change conf['show_queries'] and conf['debug_l10n'] for their session ... git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2017 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--plugins/admin_multi_view/is_admin.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/admin_multi_view/is_admin.inc.php b/plugins/admin_multi_view/is_admin.inc.php
index 78f68eef1..0f85c5e0d 100644
--- a/plugins/admin_multi_view/is_admin.inc.php
+++ b/plugins/admin_multi_view/is_admin.inc.php
@@ -17,6 +17,11 @@ if (! defined('MULTIVIEW_CONTROLLER') )
{
$user['language'] = $lang;
}
+ global $conf;
+ if (pwg_get_session_var( 'multiview_show_queries', 0 ))
+ $conf['show_queries'] = true;
+ if (pwg_get_session_var( 'multiview_debug_l10n', 0 ))
+ $conf['debug_l10n'] = true;
}
add_event_handler('loc_end_page_header', 'multiview_loc_end_page_header');