Code style tweak, use strval() to make this all much shorter.
authorChad Horohoe <demon@users.mediawiki.org>
Tue, 19 May 2009 14:54:20 +0000 (14:54 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Tue, 19 May 2009 14:54:20 +0000 (14:54 +0000)
includes/specials/SpecialExport.php

index 06bf34a..7e500f7 100644 (file)
@@ -68,7 +68,7 @@ class SpecialExport extends SpecialPage {
                        $page = $wgRequest->getText( 'pages' );
                        $nsindex = $wgRequest->getText( 'nsindex', '' );
                        
-                       if ( $nsindex !== '' && $nsindex !== null && $nsindex !== false ) {
+                       if ( strval( $nsindex ) !== ''  ) {
                                /**
                                 * Same implementation as above, so same @fixme
                                 */