* (bug 2792) Update rebuildrecentchanges.inc for new schema
[lhc/web/wiklou.git] / maintenance / FiveUpgrade.inc
index 34a0929..42e5efb 100644 (file)
@@ -375,7 +375,7 @@ class FiveUpgrade {
                        INDEX usertext_timestamp (rev_user_text,rev_timestamp)
                        ) TYPE=InnoDB", $fname );
 
-               $maxold = IntVal( $this->dbw->selectField( 'old', 'max(old_id)', '', $fname ) );
+               $maxold = intval( $this->dbw->selectField( 'old', 'max(old_id)', '', $fname ) );
                $this->log( "Last old record is {$maxold}" );
 
                global $wgLegacySchemaConversion;
@@ -537,9 +537,9 @@ CREATE TABLE $pagelinks (
                        $add = array();
                        while( $row = $this->dbr->fetchObject( $result ) ) {
                                $add[] = array(
-                                       'pl_from'      => $row->l_from,
-                                       'pl_namespace' => $row->cur_namespace,
-                                       'pl_title'     => $row->cur_title );
+                                       'pl_from'      =>              $row->l_from,
+                                       'pl_namespace' =>              $row->cur_namespace,
+                                       'pl_title'     => $this->conv( $row->cur_title ) );
                                $this->addChunk( $add );
                        }
                        $this->lastChunk( $add );