X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FOutputPage.php;h=6904432410fcf185ae51ff8ed91b6ae9510b453b;hb=fe020896bd48989ef81427a60509307c9e1b65bf;hp=bf9f5ac0b117b51496c6e8d2e34a60e94c4992cc;hpb=2367c317c089dfabcf20e9ca5522725e86e93059;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/OutputPage.php b/includes/OutputPage.php index bf9f5ac0b1..6904432410 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, @@ -1721,6 +1721,7 @@ class OutputPage extends ContextSource { array( "{$wgCookiePrefix}Token", "{$wgCookiePrefix}LoggedOut", + "forceHTTPS", session_name() ), $wgCacheVaryCookies @@ -2481,10 +2482,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() == '' ) { @@ -2577,7 +2574,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 ''; @@ -3014,6 +3011,7 @@ $templates 'wgPageName' => $title->getPrefixedDBkey(), 'wgTitle' => $title->getText(), 'wgCurRevisionId' => $latestRevID, + 'wgRevisionId' => (int)$this->getRevisionId(), 'wgArticleId' => $pageID, 'wgIsArticle' => $this->isArticle(), 'wgIsRedirect' => $title->isRedirect(),