From d1a8584e9ac8feb51a4c53024398a7547b595b1d Mon Sep 17 00:00:00 2001 From: ZabeMath Date: Thu, 4 Mar 2021 17:05:04 +0100 Subject: [PATCH] BaseTemplate::getFooterIcons is deprecated For callers calling `$this->getFooterIcons();` `$this->get( 'footericons' )` can be used instead. Bug: T267447 Change-Id: Idef36ab0da345390409f8eaeed3592cd84ca980e --- includes/TimelessTemplate.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/TimelessTemplate.php b/includes/TimelessTemplate.php index b85e25a..558f0c9 100644 --- a/includes/TimelessTemplate.php +++ b/includes/TimelessTemplate.php @@ -334,7 +334,6 @@ class TimelessTemplate extends BaseTemplate { * practice we currently only check if it is or isn't 'iconsfirst' * * 'link-prefix' to set the prefix for all link and block ids; most skins use 'f' or 'footer', * as in id='f-whatever' vs id='footer-whatever' - * * 'icon-style' to pass to getFooterIcons: "icononly", "nocopyright" * * 'link-style' to pass to getFooterLinks: "flat" to disable categorisation of links in a * nested array * @@ -347,13 +346,12 @@ class TimelessTemplate extends BaseTemplate { 'class' => 'mw-footer', 'order' => 'iconsfirst', 'link-prefix' => 'footer', - 'icon-style' => 'icononly', 'link-style' => null ]; // phpcs:ignore Generic.Files.LineLength.TooLong - '@phan-var array{id:string,class:string,order:string,link-prefix:string,icon-style:string,link-style:?string} $options'; - $validFooterIcons = $this->getFooterIcons( $options['icon-style'] ); + '@phan-var array{id:string,class:string,order:string,link-prefix:string,link-style:?string} $options'; + $validFooterIcons = $this->get( 'footericons' ); $validFooterLinks = $this->getFooterLinks( $options['link-style'] ); $html = '';