http://www.mediawiki.org/wiki/Special:Code/MediaWiki/97641

Revision: 97641
Author:   nikerabbit
Date:     2011-09-20 16:26:39 +0000 (Tue, 20 Sep 2011)
Log Message:
-----------
I broke few parser tests in r97633 by overlooking the return value. This fixes 
them.

Modified Paths:
--------------
    trunk/phase3/includes/cache/LinkCache.php

Modified: trunk/phase3/includes/cache/LinkCache.php
===================================================================
--- trunk/phase3/includes/cache/LinkCache.php   2011-09-20 16:13:00 UTC (rev 
97640)
+++ trunk/phase3/includes/cache/LinkCache.php   2011-09-20 16:26:39 UTC (rev 
97641)
@@ -200,8 +200,10 @@
                # Set fields...
                if ( $s !== false ) {
                        $this->addGoodLinkObjFromRow( $nt, $s );
+                       $id = intval( $s->page_id );
                } else {
                        $this->addBadLinkObj( $nt );
+                       $id = 0;
                }
 
                wfProfileOut( __METHOD__ );


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to