From 15b4549f5aaa61f933fb20273387729969884d4a Mon Sep 17 00:00:00 2001 From: libraryupgrader Date: Thu, 30 Jan 2020 20:06:40 +0000 Subject: [PATCH] build: Updating composer dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * mediawiki/minus-x: 0.3.2 → 1.0.0 * mediawiki/mediawiki-phan-config: 0.9.0 → 0.9.1 Change-Id: I45125aebf577934f481bdd1ee51faea777a1e0d8 --- composer.json | 4 ++-- includes/TimelessTemplate.php | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index acda4f8..ec58ce9 100644 --- a/composer.json +++ b/composer.json @@ -3,8 +3,8 @@ "jakub-onderka/php-parallel-lint": "1.0.0", "mediawiki/mediawiki-codesniffer": "29.0.0", "jakub-onderka/php-console-highlighter": "0.4.0", - "mediawiki/minus-x": "0.3.2", - "mediawiki/mediawiki-phan-config": "0.9.0" + "mediawiki/minus-x": "1.0.0", + "mediawiki/mediawiki-phan-config": "0.9.1" }, "scripts": { "fix": [ diff --git a/includes/TimelessTemplate.php b/includes/TimelessTemplate.php index eb38142..25ffc86 100644 --- a/includes/TimelessTemplate.php +++ b/includes/TimelessTemplate.php @@ -187,6 +187,7 @@ class TimelessTemplate extends BaseTemplate { * @param array $setOptions miscellaneous overrides, see below * * @return string html + * @suppress PhanTypeMismatchArgumentNullable */ protected function getPortlet( $name, $content, $msg = null, $setOptions = [] ) { // random stuff to override with any provided options @@ -357,6 +358,7 @@ class TimelessTemplate extends BaseTemplate { $wordmarkImage = $this->getLogoImage( $config->get( 'TimelessWordmark' ), true ); $titleClass = ''; + $siteTitle = ''; if ( !$wordmarkImage ) { if ( $language->hasVariants() ) { $siteTitle = $language->convert( $this->getMsg( 'timeless-sitetitle' )->escaped() ); @@ -833,13 +835,13 @@ class TimelessTemplate extends BaseTemplate { */ protected function getCategories() { $skin = $this->getSkin(); + $catHeader = 'categories'; $catList = ''; $html = ''; $allCats = $skin->getOutput()->getCategoryLinks(); if ( !empty( $allCats ) ) { if ( !empty( $allCats['normal'] ) ) { - $catHeader = 'categories'; $catList .= $this->getCatList( $allCats['normal'], 'normal-catlinks',