diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-05-16 05:08:46 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-05-16 05:08:46 +0000 |
commit | 79e551fbd598910fd3bfc18b2b6857ab2c0ca585 (patch) | |
tree | fd8d920a526630c07bfc1a2a99355fdd3e0de53e /plugins/admin_multi_view/is_admin.inc.php | |
parent | 75bfe8b6678bfce6ff4e28d6df3246d9122ec823 (diff) |
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/trunk@2016 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | plugins/admin_multi_view/is_admin.inc.php | 5 |
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'); |