r73653 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73652‎ | r73653 | r73654 >
Date:14:01, 24 September 2010
Author:kwisatz
Status:deferred
Tags:
Comment:
Using NS_SPECIAL constant instead of integer value
Modified paths:
  • /trunk/extensions/QrCode/QrCode.php (modified) (history)

Diff [purge]

Index: trunk/extensions/QrCode/QrCode.php
@@ -60,7 +60,7 @@
6161
6262 // we're not generating QrCodes for pages in the "Special" namespace
6363 // as that can lead to multiple "uploads" on i.e. Special:Ask
64 - if ( $wgTitle->getNamespace() === -1 ) {
 64+ if ( $wgTitle->getNamespace() === NS_SPECIAL ) {
6565 return false;
6666 }
6767

Status & tagging log