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
This commit is contained in:
rvelices
2007-05-16 05:08:46 +00:00
parent 75bfe8b667
commit 79e551fbd5
2 changed files with 47 additions and 0 deletions
@@ -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');