Hi,
This is my first ever patch submission for Wikipedia. I have been reading the source to get my head around it, before I try to add any major features :)
This is a minor fix to remove a function call, and to get rid of some comments in CategoryPage.php that were copied and pasted from ImagePage.php.
Patch is against 1.4rc1
Best Regards,
Marc O'Morain
--- includes/CategoryPage.php 2005-02-03 08:39:50.000000000 +0000 +++ includes_modified/CategoryPage.php 2005-03-06 21:42:48.730722000 +0000 @@ -18,17 +18,16 @@ class CategoryPage extends Article {
function view() { - if ( NS_CATEGORY == $this->mTitle->getNamespace() ) { + + $show_category = NS_CATEGORY == $this->mTitle->getNamespace(); + + if ($show_category) { $this->openShowCategory(); }
Article::view();
- # If the article we've just shown is in the "Image" namespace, - # follow it with the history list and link list for the image - # it describes. - - if ( NS_CATEGORY == $this->mTitle->getNamespace() ) { + if ($show_category) { $this->closeShowCategory(); } }