From: Chad Horohoe Date: Sun, 2 Aug 2009 19:49:24 +0000 (+0000) Subject: timestamp() fixes on updateSearchIndex.php, and declare globals in updateSpecialPages.php X-Git-Tag: 1.31.0-rc.0~40571 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmembres/cotisations/gestion/rappel_supprimer.php?a=commitdiff_plain;h=1bee515b5ff47b2285d0cda151d8441d88cb1a58;p=lhc%2Fweb%2Fwiklou.git timestamp() fixes on updateSearchIndex.php, and declare globals in updateSpecialPages.php --- diff --git a/maintenance/updateSearchIndex.php b/maintenance/updateSearchIndex.php index 475001541f..978ccabed0 100644 --- a/maintenance/updateSearchIndex.php +++ b/maintenance/updateSearchIndex.php @@ -75,8 +75,8 @@ class UpdateSearchIndex extends Maintenance { $this->output( "Updating searchindex between $start and $end\n" ); # Select entries from recentchanges which are on top and between the specified times - $start = $dbw->strencode( $start ); - $end = $dbw->strencode( $end ); + $start = $dbw->timestamp( $start ); + $end = $dbw->timestamp( $end ); $page = $dbw->tableName( 'page' ); $sql = "SELECT rc_cur_id,rc_type,rc_moved_to_ns,rc_moved_to_title FROM $recentchanges diff --git a/maintenance/updateSpecialPages.php b/maintenance/updateSpecialPages.php index 5bd18c39b5..37f2c2fe5f 100644 --- a/maintenance/updateSpecialPages.php +++ b/maintenance/updateSpecialPages.php @@ -32,7 +32,7 @@ class UpdateSpecialPages extends Maintenance { } public function execute() { - global $wgOut; + global $wgOut, $wgSpecialPageCacheUpdates, $wgQueryPages;; $wgOut->disable(); $dbw = wfGetDB( DB_MASTER ); @@ -59,7 +59,7 @@ class UpdateSpecialPages extends Maintenance { # Wait for the slave to catch up wfWaitForSlaves( 5 ); } - + foreach( $wgQueryPages as $page ) { @list( $class, $special, $limit ) = $page;