From: Platonides Date: Mon, 26 Jul 2010 20:51:33 +0000 (+0000) Subject: Follow up r21799. Fix usage of $this in static method. X-Git-Tag: 1.31.0-rc.0~35905 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/bilan.php?a=commitdiff_plain;h=11bdcf96111b1e3ebfeacfe146bc93785ada0c8b;p=lhc%2Fweb%2Fwiklou.git Follow up r21799. Fix usage of $this in static method. --- diff --git a/includes/SquidUpdate.php b/includes/SquidUpdate.php index 66517719a7..8944df8adf 100644 --- a/includes/SquidUpdate.php +++ b/includes/SquidUpdate.php @@ -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 ) ;