http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73653
Revision: 73653
Author: kwisatz
Date: 2010-09-24 14:01:41 +0000 (Fri, 24 Sep 2010)
Log Message:
-----------
Using NS_SPECIAL constant instead of integer value
Modified Paths:
--------------
trunk/extensions/QrCode/QrCode.php
Modified: trunk/extensions/QrCode/QrCode.php
===================================================================
--- trunk/extensions/QrCode/QrCode.php 2010-09-24 13:00:46 UTC (rev 73652)
+++ trunk/extensions/QrCode/QrCode.php 2010-09-24 14:01:41 UTC (rev 73653)
@@ -60,7 +60,7 @@
// we're not generating QrCodes for pages in the "Special" namespace
// as that can lead to multiple "uploads" on i.e. Special:Ask
- if ( $wgTitle->getNamespace() === -1 ) {
+ if ( $wgTitle->getNamespace() === NS_SPECIAL ) {
return false;
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs