mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
AdminTools show sql queries option is the first one to be set (before calling build_user in order to see all queries)
git-svn-id: http://piwigo.org/svn/trunk@29069 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -121,6 +121,13 @@ class MultiView
|
||||
// inactive on ws.php to allow AJAX admin tasks
|
||||
if ($this->is_admin && script_basename() != 'ws')
|
||||
{
|
||||
// show_queries
|
||||
if (isset($_GET['ato_show_queries']))
|
||||
{
|
||||
$this->data['show_queries'] = (bool)$_GET['ato_show_queries'];
|
||||
}
|
||||
$conf['show_queries'] = $this->data['show_queries'];
|
||||
|
||||
if ($this->data['view_as'] == 0)
|
||||
{
|
||||
$this->data['view_as'] = $user['id'];
|
||||
@@ -166,13 +173,6 @@ class MultiView
|
||||
}
|
||||
$user['language'] = $this->data['lang'];
|
||||
|
||||
// show_queries
|
||||
if (isset($_GET['ato_show_queries']))
|
||||
{
|
||||
$this->data['show_queries'] = (bool)$_GET['ato_show_queries'];
|
||||
}
|
||||
$conf['show_queries'] = $this->data['show_queries'];
|
||||
|
||||
// debug_l10n
|
||||
if (isset($_GET['ato_debug_l10n']))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user