From ed2793ecbec0c7518aadb61ad94b654bdd132eb9 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Thu, 3 Jun 2004 01:29:02 +0000 Subject: [PATCH] function makeNSUrl( , ='', =0 ) --- includes/Skin.php | 6 ++++++ 1 file changed, 6 insertions(+) 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='' ) { -- 2.20.1