mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-21 00:53:04 +02:00
Reduce number of queries a very little bit.
git-svn-id: http://piwigo.org/svn/trunk@1888 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
+2
-4
@@ -120,7 +120,8 @@ else if (isset($_GET['action']) and 'phpinfo' == $_GET['action'])
|
||||
|
||||
$template->set_filenames(array('intro' => 'admin/intro.tpl'));
|
||||
|
||||
list($mysql_version) = mysql_fetch_row(pwg_query('SELECT VERSION();'));
|
||||
$php_current_timestamp = date("Y-m-d H:i:s");
|
||||
list($mysql_version, $db_current_timestamp) = mysql_fetch_row(pwg_query('SELECT VERSION(), CURRENT_TIMESTAMP;'));
|
||||
|
||||
$query = '
|
||||
SELECT COUNT(*)
|
||||
@@ -184,9 +185,6 @@ SELECT COUNT(*)
|
||||
;';
|
||||
list($nb_comments) = mysql_fetch_row(pwg_query($query));
|
||||
|
||||
$php_current_timestamp = date("Y-m-d H:i:s");
|
||||
list($db_current_timestamp) = mysql_fetch_row(pwg_query('SELECT CURRENT_TIMESTAMP;'));
|
||||
|
||||
$template->assign_vars(
|
||||
array(
|
||||
'PWG_VERSION' => PHPWG_VERSION,
|
||||
|
||||
Reference in New Issue
Block a user