Last modified: 2008-02-25 11:44:37 UTC
Created attachment 4672 [details]
Patch to disable hidden cat during display of cat page
__HIDDENCAT__ should not affect the display of Category namespace pages, otherwise you cannot navigate the category tree.
Note this affects 1.13-svn, but there is no option on bugzilla for that version.
I include a tested patch, which works on mediawiki svn r31239 (2008-02-24 18:09:10 -0500).
The patch uses the global variable wgTitle to get the current namespace. There may be a more localized way of doing this.
You could try using $wgNamespaceNumber (which for categories is 14).
Fixed with r31250, using a shorter way.