Follow up r21799. Fix usage of $this in static method.
authorPlatonides <platonides@users.mediawiki.org>
Mon, 26 Jul 2010 20:51:33 +0000 (20:51 +0000)
committerPlatonides <platonides@users.mediawiki.org>
Mon, 26 Jul 2010 20:51:33 +0000 (20:51 +0000)
includes/SquidUpdate.php

index 6651771..8944df8 100644 (file)
@@ -26,6 +26,7 @@ class SquidUpdate {
        }
 
        static function newFromLinksTo( &$title ) {
+               global $wgMaxSquidPurgeTitles;
                wfProfileIn( __METHOD__ );
 
                # Get a list of URLs linking to this page
@@ -38,7 +39,7 @@ class SquidUpdate {
                                'pl_from=page_id' ),
                        __METHOD__ );
                $blurlArr = $title->getSquidURLs();
-               if ( $dbr->numRows( $res ) <= $this->mMaxTitles ) {
+               if ( $dbr->numRows( $res ) <= $wgMaxSquidPurgeTitles ) {
                        while ( $BL = $dbr->fetchObject ( $res ) )
                        {
                                $tobj = Title::makeTitle( $BL->page_namespace, $BL->page_title ) ;