r44294 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44293‎ | r44294 | r44295 >
Date:23:48, 7 December 2008
Author:aaron
Status:deferred
Tags:
Comment:
Performance tweak
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/specialpages/Stabilization_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/Stabilization_body.php
@@ -266,7 +266,7 @@
267267 # Insert a null revision
268268 $nullRevision = Revision::newNullRevision( $dbw, $id, $comment, true );
269269 $nullRevId = $nullRevision->insertOn( $dbw );
270 - # Update page record
 270+ # Update page record and touch page
271271 $article = new Article( $this->page );
272272 $article->updateRevisionOn( $dbw, $nullRevision, $latest );
273273 wfRunHooks( 'NewRevisionFromEditComplete', array($article, $nullRevision, $latest) );
Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -1105,7 +1105,7 @@
11061106 public static function overrideRedirect( &$title, $request, &$ignoreRedirect, &$target ) {
11071107 # Get an instance on the title ($wgTitle)
11081108 $fa = FlaggedArticle::getTitleInstance( $title );
1109 - if( !$fa->isReviewable() ) {
 1109+ if( !$fa->isReviewable(true) ) {
11101110 return true;
11111111 }
11121112 if( $request->getVal( 'stableid' ) ) {

Status & tagging log