r47886 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47885‎ | r47886 | r47887 >
Date:03:58, 28 February 2009
Author:aaron
Status:ok
Tags:
Comment:
short-circuit addBacklogNotice()
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -1483,7 +1483,7 @@
14841484
14851485 public static function addBacklogNotice( &$notice ) {
14861486 global $wgUser, $wgTitle, $wgFlaggedRevsNamespaces;
1487 - if( empty($wgTitle) ) {
 1487+ if( empty($wgTitle) || $wgTitle->getNamespace() !== NS_SPECIAL ) {
14881488 return true; // nothing to do here
14891489 }
14901490 $watchlist = SpecialPage::getTitleFor( 'Watchlist' );

Status & tagging log