Merge "build: Updating composer dependencies"

isekai
jenkins-bot 5 years ago committed by Gerrit Code Review
commit 8e4d468712

@ -3,8 +3,8 @@
"jakub-onderka/php-parallel-lint": "1.0.0", "jakub-onderka/php-parallel-lint": "1.0.0",
"mediawiki/mediawiki-codesniffer": "29.0.0", "mediawiki/mediawiki-codesniffer": "29.0.0",
"jakub-onderka/php-console-highlighter": "0.4.0", "jakub-onderka/php-console-highlighter": "0.4.0",
"mediawiki/minus-x": "0.3.2", "mediawiki/minus-x": "1.0.0",
"mediawiki/mediawiki-phan-config": "0.9.0" "mediawiki/mediawiki-phan-config": "0.9.1"
}, },
"scripts": { "scripts": {
"fix": [ "fix": [

@ -187,6 +187,7 @@ class TimelessTemplate extends BaseTemplate {
* @param array $setOptions miscellaneous overrides, see below * @param array $setOptions miscellaneous overrides, see below
* *
* @return string html * @return string html
* @suppress PhanTypeMismatchArgumentNullable
*/ */
protected function getPortlet( $name, $content, $msg = null, $setOptions = [] ) { protected function getPortlet( $name, $content, $msg = null, $setOptions = [] ) {
// random stuff to override with any provided options // random stuff to override with any provided options
@ -357,6 +358,7 @@ class TimelessTemplate extends BaseTemplate {
$wordmarkImage = $this->getLogoImage( $config->get( 'TimelessWordmark' ), true ); $wordmarkImage = $this->getLogoImage( $config->get( 'TimelessWordmark' ), true );
$titleClass = ''; $titleClass = '';
$siteTitle = '';
if ( !$wordmarkImage ) { if ( !$wordmarkImage ) {
if ( $language->hasVariants() ) { if ( $language->hasVariants() ) {
$siteTitle = $language->convert( $this->getMsg( 'timeless-sitetitle' )->escaped() ); $siteTitle = $language->convert( $this->getMsg( 'timeless-sitetitle' )->escaped() );
@ -833,13 +835,13 @@ class TimelessTemplate extends BaseTemplate {
*/ */
protected function getCategories() { protected function getCategories() {
$skin = $this->getSkin(); $skin = $this->getSkin();
$catHeader = 'categories';
$catList = ''; $catList = '';
$html = ''; $html = '';
$allCats = $skin->getOutput()->getCategoryLinks(); $allCats = $skin->getOutput()->getCategoryLinks();
if ( !empty( $allCats ) ) { if ( !empty( $allCats ) ) {
if ( !empty( $allCats['normal'] ) ) { if ( !empty( $allCats['normal'] ) ) {
$catHeader = 'categories';
$catList .= $this->getCatList( $catList .= $this->getCatList(
$allCats['normal'], $allCats['normal'],
'normal-catlinks', 'normal-catlinks',

Loading…
Cancel
Save