1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-06 03:49:56 +02:00

remove redundent UPDATE on session table due to /util.php should make high-traffic sites faster, most likely will not notice the query redunction

This commit is contained in:
Karl 'vollmerk' Vollmer 2008-05-26 09:00:01 +00:00
parent 97bcd21404
commit a919e9b280
3 changed files with 15 additions and 6 deletions

View file

@ -251,13 +251,12 @@ unset($results);
flip_class(array('odd','even'));
/* Check to see if we need to perform an update */
if (! preg_match('/update\.php/', $_SERVER['PHP_SELF'])) {
if (!preg_match('/update\.php/', $_SERVER['PHP_SELF'])) {
if (Update::need_update()) {
header("Location: " . Config::get('web_path') . "/update.php");
exit();
}
}
// For the XMLRPC stuff
$GLOBALS['xmlrpc_internalencoding'] = Config::get('site_charset');
?>