From 6f069f50fc58bac5d15b76b2643c774cb58fd4d2 Mon Sep 17 00:00:00 2001 From: rvelices Date: Mon, 21 Jul 2014 23:40:12 +0000 Subject: 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 --- plugins/AdminTools/include/MultiView.class.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins') 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'])) { -- cgit v1.2.3