This worked for me in 1.9.3, and solved a problem I didn't even realize I had (now realizing why I should not block viewing for non- logged in users on my dev wiki...doh) Thanks!
Is it going to be incorporated?
Jim On Jul 18, 2007, at 2:15 AM, Rob Church wrote:
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
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
===================================== Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054