r54227 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r54226‎ | r54227 | r54228 >
Date:19:49, 2 August 2009
Author:demon
Status:ok
Tags:
Comment:
timestamp() fixes on updateSearchIndex.php, and declare globals in updateSpecialPages.php
Modified paths:
  • /trunk/phase3/maintenance/updateSearchIndex.php (modified) (history)
  • /trunk/phase3/maintenance/updateSpecialPages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/updateSearchIndex.php
@@ -75,8 +75,8 @@
7676 $this->output( "Updating searchindex between $start and $end\n" );
7777
7878 # Select entries from recentchanges which are on top and between the specified times
79 - $start = $dbw->strencode( $start );
80 - $end = $dbw->strencode( $end );
 79+ $start = $dbw->timestamp( $start );
 80+ $end = $dbw->timestamp( $end );
8181
8282 $page = $dbw->tableName( 'page' );
8383 $sql = "SELECT rc_cur_id,rc_type,rc_moved_to_ns,rc_moved_to_title FROM $recentchanges
Index: trunk/phase3/maintenance/updateSpecialPages.php
@@ -32,7 +32,7 @@
3333 }
3434
3535 public function execute() {
36 - global $wgOut;
 36+ global $wgOut, $wgSpecialPageCacheUpdates, $wgQueryPages;;
3737 $wgOut->disable();
3838 $dbw = wfGetDB( DB_MASTER );
3939
@@ -59,7 +59,7 @@
6060 # Wait for the slave to catch up
6161 wfWaitForSlaves( 5 );
6262 }
63 -
 63+
6464 foreach( $wgQueryPages as $page ) {
6565 @list( $class, $special, $limit ) = $page;
6666

Status & tagging log