follow-up r60272. replace $_GET with $wgRequest->getText.
[lhc/web/wiklou.git] / maintenance / attachLatest.php
index fa07649..67f3088 100644 (file)
@@ -43,7 +43,7 @@ class AttachLatest extends Maintenance {
                        __METHOD__ );
 
                $n = 0;
-               while( $row = $dbw->fetchObject( $result ) ) {
+               foreach( $result as $row ) {
                        $pageId = intval( $row->page_id );
                        $title = Title::makeTitle( $row->page_namespace, $row->page_title );
                        $name = $title->getPrefixedText();