From d52f81e66ce8bd9e1a03d583de13cd0443a3dab8 Mon Sep 17 00:00:00 2001 From: rub Date: Sun, 11 Mar 2007 09:52:29 +0000 Subject: Reduce number of queries a very little bit. git-svn-id: http://piwigo.org/svn/trunk@1888 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/intro.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'admin/intro.php') diff --git a/admin/intro.php b/admin/intro.php index 6ff2470ed..326e66609 100644 --- a/admin/intro.php +++ b/admin/intro.php @@ -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, -- cgit v1.2.3