(bug 13816) Filter by main namespace doesn't work on WhatLinksHere. Guess why? ...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 22 Apr 2008 01:05:15 +0000 (01:05 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Tue, 22 Apr 2008 01:05:15 +0000 (01:05 +0000)
RELEASE-NOTES
includes/FormOptions.php

index 5e1ebcb..e6081ee 100644 (file)
@@ -208,6 +208,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * Fix fatal error on calling PAGESINCATEGORY with invalid category name
 * (bug 13793) Special:Whatlinkshere filters wrong - after paginating instead of before
 * (bug 13796) Show links to parent pages even if some of them are missing
+* (bug 13816) Filter by main namespace doesn't work on WhatLinksHere
 
 === API changes in 1.13 ===
 
index f708b4a..8c7849e 100644 (file)
@@ -154,10 +154,10 @@ class FormOptions {
                                        throw new MWException( 'Unsupported datatype' );
                        }
 
-                       if ( $value !== $default && $value != null ) {
+                       if ( $value !== $default && $value !== null ) {
                                $this->options[$name]['value'] = $value;
                        }
                }
        }
 
-}
\ No newline at end of file
+}