* Don't allow moving with subpages to a namespace that doesn't allow subpages. Such...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 23 May 2008 17:09:28 +0000 (17:09 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 23 May 2008 17:09:28 +0000 (17:09 +0000)
commit033fd9b7016e1f632215d5f47a4a53ed577f32ff
treee7cc6638a435ec2ce6b8401861581edf386782ec
parent3543d97c5c94be98b0d69c52f6d39c2f040b08f5
* Don't allow moving with subpages to a namespace that doesn't allow subpages.  Such a move is only questionably reasonable, and even if reasonable it's not possible to revert it.
* Use a consistent test for whether a namespace permits subpages: empty(), not isset or boolean test with errors suppressed or a combination of those.  The isset test alone (used in isSubpage()) is particularly broken because it returns true if the namespace is explicitly set to *not* allow namespaces, and only returns false if the entry is unset.
* Reshuffle some global declarations, simplify a conditional block
includes/SpecialMovepage.php
includes/Title.php
includes/api/ApiQuerySiteinfo.php