diff options
author | rub <rub@piwigo.org> | 2007-03-11 09:52:29 +0000 |
---|---|---|
committer | rub <rub@piwigo.org> | 2007-03-11 09:52:29 +0000 |
commit | d52f81e66ce8bd9e1a03d583de13cd0443a3dab8 (patch) | |
tree | 5abe9caacea5be98428dc6ff024e4b54ab306da0 /admin | |
parent | 1a87fe5d07d7d9eeb8a6cbb47ed26e4fcbef8ca4 (diff) |
Reduce number of queries a very little bit.
git-svn-id: http://piwigo.org/svn/trunk@1888 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/intro.php | 6 |
1 files changed, 2 insertions, 4 deletions
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, |