aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2014-07-21 23:40:12 +0000
committerrvelices <rv-github@modusoptimus.com>2014-07-21 23:40:12 +0000
commit6f069f50fc58bac5d15b76b2643c774cb58fd4d2 (patch)
tree5dfc1ecebf9c239b684a84a40d45f7eb6471f7bc /plugins
parent8ab305a68829952ccb8db45bd715befd9fce6591 (diff)
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
Diffstat (limited to '')
-rw-r--r--plugins/AdminTools/include/MultiView.class.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/AdminTools/include/MultiView.class.php b/plugins/AdminTools/include/MultiView.class.php
index 21c2560fa..889ba457f 100644
--- a/plugins/AdminTools/include/MultiView.class.php
+++ b/plugins/AdminTools/include/MultiView.class.php
@@ -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']))
{