r61481 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r61480‎ | r61481 | r61482 >
Date:06:02, 25 January 2010
Author:aaron
Status:ok
Tags:
Comment:
*(bug 14580) Loosen up handling dynamic parserfunction based inclusions don't block review of pages with sync errors
* Renamed $noMatch var
Modified paths:
  • /trunk/extensions/FlaggedRevs/specialpages/RevisionReview_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/specialpages/RevisionReview_body.php
@@ -504,11 +504,10 @@
505505 $oldfrev->getRevText(), $oldfrev->getRevId() );
506506 }
507507
508 - # Be looser on includes for templates, since they don't matter much
509 - # and strict checking breaks randomized images/metatemplates...(bug 14580)
 508+ # Be loose on templates that includes other files/templates dynamically.
 509+ # Strict checking breaks randomized images/metatemplates...(bug 14580)
510510 global $wgUseCurrentTemplates, $wgUseCurrentImages;
511 - $noMatch = ( $rev->getTitle()->getNamespace() == NS_TEMPLATE
512 - && $wgUseCurrentTemplates && $wgUseCurrentImages );
 511+ $mustMatch = !( $wgUseCurrentTemplates && $wgUseCurrentImages );
513512
514513 # Set our versioning params cache
515514 FlaggedRevs::setIncludeVersionCache( $rev->getId(), $tmpParams, $imgParams );
@@ -516,7 +515,7 @@
517516 $text = $rev->getText();
518517 $stableOutput = FlaggedRevs::parseStableText( $article, $text, $rev->getId() );
519518 $err =& $stableOutput->fr_includeErrors;
520 - if ( !$noMatch ) { // template/files must all be specified
 519+ if ( $mustMatch ) { // if template/files must all be specified...
521520 if ( !empty( $err )
522521 || $stableOutput->fr_newestImageTime > $lastImgTime
523522 || $stableOutput->fr_newestTemplateID > $lastTempId )

Status & tagging log