removed makeUrl functions, now in Skin.php
authorGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 5 May 2004 12:02:25 +0000 (12:02 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 5 May 2004 12:02:25 +0000 (12:02 +0000)
includes/SkinPHPTal.php

index 2848df9..7ab274e 100644 (file)
                                        return wfMsg('nstab-main');
                        }
                }
-
-
-               /*static*/ function makeSpecialUrl( $name, $urlaction='' ) {
-                       $title = Title::makeTitle( NS_SPECIAL, $name );
-                       $this->checkTitle(&$title, &$name);     
-                       return $title->getLocalURL( $urlaction );
-               }
-               /*static*/ function makeTalkUrl ( $name, $urlaction='' ) {
-                       $title = Title::newFromText( $name );
-                       $title = $title->getTalkPage();
-                       $this->checkTitle(&$title, &$name);     
-                       return $title->getLocalURL( $urlaction );
-               }
-               /*static*/ function makeArticleUrl ( $name, $urlaction='' ) {
-                       $title = Title::newFromText( $name );
-                       $title= $title->getSubjectPage();
-                       $this->checkTitle(&$title, &$name);     
-                       return $title->getLocalURL( $urlaction );
-               }
-               /*static*/ function makeI18nUrl ( $name, $urlaction='' ) {
-                       $title = Title::newFromText( wfMsg($name) );
-                       $this->checkTitle(&$title, &$name);     
-                       return $title->getLocalURL( $urlaction );
-               }
-               /*static*/ function makeUrl ( $name, $urlaction='' ) {
-                       $title = Title::newFromText( $name );
-                       $this->checkTitle(&$title, &$name);     
-                       return $title->getLocalURL( $urlaction ); 
-               }
-
-               # make sure we have some title to operate on, mind the '&'
-               /*static*/ function checkTitle ( &$title, &$name ) { 
-                       if(!is_object($title)) {
-                               $title = Title::newFromText( $name );
-                               if(!is_object($title)) {
-                                       $title = Title::newFromText( '<error: link target missing>' );
-                               }
-                       }
-               }
-                       
-
        }
 
        class SkinDaVinci extends SkinPHPTal {