On 16/07/07, Benct Philip Jonsson bpj@melroch.se wrote:
Is it possible to do something so that a link like [[:Category:Homer]] doesn't go to an edit page even if there is no text in the category page, but just goes to the category listing, as if I had written "Category:Homer" in the search box? (Other than manually putting the content " " into each category page so linked, that is!)
The following patch should work, at least against trunk...
Index: Title.php =================================================================== --- Title.php (revision 24223) +++ Title.php (working copy) @@ -2481,7 +2481,7 @@ * always known. */ public function isAlwaysKnown() { - return ( $this->isExternal() || + return ( $this->isExternal() || $this->mNamespace == NS_CATEGORY || ( 0 == $this->mNamespace && "" == $this->mDbkeyform ) || ( NS_MEDIAWIKI == $this->mNamespace && wfMsgWeirdKey( $this->mDbkeyform ) ) ); }
Rob Church