From 11bdcf96111b1e3ebfeacfe146bc93785ada0c8b Mon Sep 17 00:00:00 2001 From: Platonides Date: Mon, 26 Jul 2010 20:51:33 +0000 Subject: [PATCH] Follow up r21799. Fix usage of $this in static method. --- includes/SquidUpdate.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ) ; -- 2.20.1