I broke few parser tests in r97633 by overlooking the return value. This fixes them.
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 20 Sep 2011 16:26:39 +0000 (16:26 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 20 Sep 2011 16:26:39 +0000 (16:26 +0000)
includes/cache/LinkCache.php

index 9362c08..785b19b 100644 (file)
@@ -200,8 +200,10 @@ class LinkCache {
                # Set fields...
                if ( $s !== false ) {
                        $this->addGoodLinkObjFromRow( $nt, $s );
+                       $id = intval( $s->page_id );
                } else {
                        $this->addBadLinkObj( $nt );
+                       $id = 0;
                }
 
                wfProfileOut( __METHOD__ );