Fix extensions to work with category sort changes
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 13 Aug 2010 22:07:48 +0000 (22:07 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 13 Aug 2010 22:07:48 +0000 (22:07 +0000)
commit4bad1ed0880a41e9d71518f3b35daae7e838857a
tree92f1f0391b7c76079e3cbff0085d013040c8ca13
parenta6aac77d16bb7d5683bc7f67ac96f88e6ab177e3
Fix extensions to work with category sort changes

Three different extensions were copy-pasting all of
CategoryPage::closeShowCategory() just to change which CategoryViewer
descendant was used.  I changed the base class to use a member variable
for the CategoryViewer class, so this reduces code duplication too.  I
only tested this on CategoryTree; MetavidWiki is certainly still broken,
from the looks of it (assumes $this->from is a string), but
PeopleCategories might be okay.  Hard to avoid breaking extensions with
this sort of schema/index change.
includes/CategoryPage.php