From: Alexandre Emsenhuber Date: Wed, 22 Jun 2011 18:24:58 +0000 (+0000) Subject: Updated calls to Linker to call them statically and removed useless parameter to... X-Git-Tag: 1.31.0-rc.0~29360 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=719e4b4b8481e23e5273b0fd9688d0ccf42eb57b;p=lhc%2Fweb%2Fwiklou.git Updated calls to Linker to call them statically and removed useless parameter to OutputPage::getSkin() --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 6e334bba09..48ee31d3d7 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1129,7 +1129,7 @@ class OutputPage { } $text = $wgContLang->convertHtml( $title->getText() ); $this->mCategories[] = $title->getText(); - $this->mCategoryLinks[$type][] = $this->getSkin()->link( $title, $text ); + $this->mCategoryLinks[$type][] = Linker::link( $title, $text ); } } } @@ -1919,7 +1919,7 @@ class OutputPage { } else { $this->addDefaultModules(); - $sk = $this->getSkin( $this->getTitle() ); + $sk = $this->getSkin(); // Hook that allows last minute changes to the output page, e.g. // adding of CSS or Javascript by extensions. @@ -2035,7 +2035,7 @@ class OutputPage { $this->setArticleRelated( false ); $loginTitle = SpecialPage::getTitleFor( 'Userlogin' ); - $loginLink = $this->getSkin()->link( + $loginLink = Linker::link( $loginTitle, wfMsgHtml( 'loginreqlink' ), array(), @@ -2125,7 +2125,7 @@ class OutputPage { if( $source ) { $this->setPageTitle( wfMsg( 'viewsource' ) ); $this->setSubtitle( - wfMsg( 'viewsourcefor', $this->getSkin()->linkKnown( $this->getTitle() ) ) + wfMsg( 'viewsourcefor', Linker::linkKnown( $this->getTitle() ) ) ); } else { $this->setPageTitle( wfMsg( 'badaccess' ) ); @@ -2150,10 +2150,10 @@ class OutputPage { $this->addHTML( Html::element( 'textarea', $params, $source ) ); // Show templates used by this article - $skin = $this->getSkin(); $article = new Article( $this->getTitle() ); + $templates = Linker::formatTemplates( $article->getUsedTemplates() ); $this->addHTML( "
-{$skin->formatTemplates( $article->getUsedTemplates() )} +$templates
" ); } @@ -2234,7 +2234,7 @@ class OutputPage { $this->addLink( array( 'rel' => 'next', 'href' => $title->getFullURL() ) ); $link = wfMsgHtml( 'returnto', - $this->getSkin()->link( $title, $text, array(), $query ) + Linker::link( $title, $text, array(), $query ) ); $this->addHTML( "

{$link}

\n" ); }