X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2FOutputPage.php;h=1d0c9309a137f432976f4f49ef7b77a104a7c3d8;hb=71426647cc902ae5cbfbcbcd57a809a82e44f2af;hp=96c7830a21abc59986660f302659672b5fa3e305;hpb=687f9dd8e188ee6c867bebabb3c7af6c54454a99;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 96c7830a21..1d0c9309a1 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -1534,7 +1534,7 @@ class OutputPage extends ContextSource { $popts = $this->parserOptions(); $oldTidy = $popts->setTidy( $tidy ); - $popts->setInterfaceMessage( (bool) $interface ); + $popts->setInterfaceMessage( (bool)$interface ); $parserOutput = $wgParser->parse( $text, $title, $popts, @@ -2432,14 +2432,6 @@ $templates * @param $options Options array to pass to Linker */ public function addReturnTo( $title, $query = array(), $text = null, $options = array() ) { - if ( in_array( 'http', $options ) ) { - $proto = PROTO_HTTP; - } elseif ( in_array( 'https', $options ) ) { - $proto = PROTO_HTTPS; - } else { - $proto = PROTO_RELATIVE; - } - $link = $this->msg( 'returnto' )->rawParams( Linker::link( $title, $text, array(), $query, $options ) )->escaped(); $this->addHTML( "

{$link}

\n" ); @@ -2489,10 +2481,6 @@ $templates $userdir = $this->getLanguage()->getDir(); $sitedir = $wgContLang->getDir(); - if ( $sk->commonPrintStylesheet() ) { - $this->addModuleStyles( 'mediawiki.legacy.wikiprintable' ); - } - $ret = Html::htmlHeader( array( 'lang' => $this->getLanguage()->getHtmlCode(), 'dir' => $userdir, 'class' => 'client-nojs' ) ); if ( $this->getHTMLTitle() == '' ) { @@ -2585,7 +2573,7 @@ $templates protected function makeResourceLoaderLink( $modules, $only, $useESI = false, array $extraQuery = array(), $loadCall = false ) { global $wgResourceLoaderUseESI; - $modules = (array) $modules; + $modules = (array)$modules; if ( !count( $modules ) ) { return ''; @@ -3024,6 +3012,7 @@ $templates 'wgCurRevisionId' => $latestRevID, 'wgArticleId' => $pageID, 'wgIsArticle' => $this->isArticle(), + 'wgIsRedirect' => $title->isRedirect(), 'wgAction' => Action::getActionName( $this->getContext() ), 'wgUserName' => $user->isAnon() ? null : $user->getName(), 'wgUserGroups' => $user->getEffectiveGroups(),