r22003 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r22002‎ | r22003 | r22004 >
Date:18:37, 8 May 2007
Author:aaron
Status:old
Tags:
Comment:
*Syntax cleanup
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -834,7 +834,7 @@
835835 $title = $article->getTitle();
836836 // Cached results available?
837837 if ( isset($this->stablefound) ) {
838 - return ( $this->stablerev ) ? $this->stablerev : null;
 838+ return ( $this->stablefound ) ? $this->stablerev : null;
839839 }
840840 $dbr = wfGetDB( DB_SLAVE );
841841 // Skip deleted revisions
@@ -875,7 +875,7 @@
876876 $title = $article->getTitle();
877877 // Cached results available?
878878 if ( isset($this->latestfound) ) {
879 - return ( $this->latestrev ) ? $this->latestrev : NULL;
 879+ return ( $this->latestfound ) ? $this->latestrev : NULL;
880880 }
881881 $dbr = wfGetDB( DB_SLAVE );
882882 // Skip deleted revisions