From: Gabriel Wicke Date: Thu, 3 Jun 2004 01:29:02 +0000 (+0000) Subject: function makeNSUrl( , ='', =0 ) X-Git-Tag: 1.5.0alpha1~3056 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=ed2793ecbec0c7518aadb61ad94b654bdd132eb9;p=lhc%2Fweb%2Fwiklou.git function makeNSUrl( , ='', =0 ) --- diff --git a/includes/Skin.php b/includes/Skin.php index 095c10f98a..99a3b22223 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -1668,6 +1668,12 @@ class Skin { $this->checkTitle($title, $name); return $title->getLocalURL( $urlaction ); } + # this can be passed the NS number as defined in Language.php + /*static*/ function makeNSUrl( $name, $urlaction='', $namespace=0 ) { + $title = Title::makeTitle( $namespace, $name ); + $this->checkTitle($title, $name); + return $title->getLocalURL( $urlaction ); + } /* these return an array with the 'href' and boolean 'exists' */ /*static*/ function makeUrlDetails ( $name, $urlaction='' ) {