r69969 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69968‎ | r69969 | r69970 >
Date:20:51, 26 July 2010
Author:platonides
Status:ok
Tags:
Comment:
Follow up r21799. Fix usage of $this in static method.
Modified paths:
  • /trunk/phase3/includes/SquidUpdate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SquidUpdate.php
@@ -26,6 +26,7 @@
2727 }
2828
2929 static function newFromLinksTo( &$title ) {
 30+ global $wgMaxSquidPurgeTitles;
3031 wfProfileIn( __METHOD__ );
3132
3233 # Get a list of URLs linking to this page
@@ -38,7 +39,7 @@
3940 'pl_from=page_id' ),
4041 __METHOD__ );
4142 $blurlArr = $title->getSquidURLs();
42 - if ( $dbr->numRows( $res ) <= $this->mMaxTitles ) {
 43+ if ( $dbr->numRows( $res ) <= $wgMaxSquidPurgeTitles ) {
4344 while ( $BL = $dbr->fetchObject ( $res ) )
4445 {
4546 $tobj = Title::makeTitle( $BL->page_namespace, $BL->page_title ) ;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r21799E_STRICT fixlets: properly mark some static methods as static...brion15:36, 2 May 2007

Status & tagging log