OutputPage: Remove unused variable left out after a refactor
authorDerick Alangi <alangiderick@gmail.com>
Thu, 11 Apr 2019 20:20:35 +0000 (21:20 +0100)
committerDerick Alangi <alangiderick@gmail.com>
Thu, 11 Apr 2019 20:20:35 +0000 (21:20 +0100)
This variable was added in I0e18dc7fdbf133f3e400 (2017) and later
removed in I11b390f2e4f5e7db8b4 (2018) but the $sk was left which
now makes it used. Hence, cleaning this up.

Change-Id: I277b9de23409da3429a3b74d42e8ab9e9d5f5399

includes/OutputPage.php

index b0000ab..1da8ac8 100644 (file)
@@ -2678,10 +2678,6 @@ class OutputPage extends ContextSource {
                $response->header( 'Content-language: ' .
                        MediaWikiServices::getInstance()->getContentLanguage()->getHtmlCode() );
 
-               if ( !$this->mArticleBodyOnly ) {
-                       $sk = $this->getSkin();
-               }
-
                $linkHeader = $this->getLinkHeader();
                if ( $linkHeader ) {
                        $response->header( $linkHeader );