Index: trunk/extensions/QrCode/QrCode.php |
— | — | @@ -60,7 +60,7 @@ |
61 | 61 | |
62 | 62 | // we're not generating QrCodes for pages in the "Special" namespace |
63 | 63 | // as that can lead to multiple "uploads" on i.e. Special:Ask |
64 | | - if ( $wgTitle->getNamespace() === -1 ) { |
| 64 | + if ( $wgTitle->getNamespace() === NS_SPECIAL ) { |
65 | 65 | return false; |
66 | 66 | } |
67 | 67 | |