r75153 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75152‎ | r75153 | r75154 >
Date:14:34, 21 October 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Can't use Title::isSpecialPage without breaking bc with 1.15 :(
Modified paths:
  • /trunk/extensions/Maps/includes/features/Maps_BaseMap.php (modified) (history)
  • /trunk/extensions/Maps/includes/features/Maps_BasePointMap.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Maps/includes/features/Maps_BasePointMap.php
@@ -98,7 +98,7 @@
9999 $this->addSpecificMapHTML( $parser );
100100
101101 global $wgTitle;
102 - if ( $wgTitle->isSpecialPage() ) {
 102+ if ( $wgTitle->getNamespace() == NS_SPECIAL ) {
103103 global $wgOut;
104104 $this->service->addDependencies( $wgOut );
105105 }
Index: trunk/extensions/Maps/includes/features/Maps_BaseMap.php
@@ -95,7 +95,7 @@
9696 $this->addSpecificMapHTML( $parser );
9797
9898 global $wgTitle;
99 - if ( $wgTitle->isSpecialPage() ) {
 99+ if ( $wgTitle->getNamespace() == NS_SPECIAL ) {
100100 global $wgOut;
101101 $this->service->addDependencies( $wgOut );
102102 }

Status & tagging log