function makeNSUrl( , ='', =0 )
authorGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 3 Jun 2004 01:29:02 +0000 (01:29 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Thu, 3 Jun 2004 01:29:02 +0000 (01:29 +0000)
includes/Skin.php

index 095c10f..99a3b22 100644 (file)
@@ -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='' ) {