From: Domas Mituzas Date: Mon, 1 Aug 2005 21:49:02 +0000 (+0000) Subject: support namespace prefixes in titles, so that such urls: X-Git-Tag: 1.6.0~2090 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=f2b5d49e59396c2acc2b0422b74cfe559fc09d6a;p=lhc%2Fweb%2Fwiklou.git support namespace prefixes in titles, so that such urls: ( http://flirt.local/~midom/Development/Phase3/index.php/Special:Allpages/MediaWiki:Message ) would work. --- diff --git a/includes/SpecialAllpages.php b/includes/SpecialAllpages.php index 55ce0bf864..caaf74f69e 100644 --- a/includes/SpecialAllpages.php +++ b/includes/SpecialAllpages.php @@ -221,6 +221,9 @@ function showChunk( $namespace = NS_MAIN, $from, $including = false ) { $sk = $wgUser->getSkin(); $fromTitle = Title::newFromURL( $from ); + $fromNS = $fromTitle->getNamespace(); + if ($namespace == NS_MAIN) + $namespace = $fromNS; $fromKey = is_null( $fromTitle ) ? '' : $fromTitle->getDBkey(); $dbr =& wfGetDB( DB_SLAVE );