BaseTemplate::getFooterIcons is deprecated

For callers calling `$this->getFooterIcons();` `$this->get( 'footericons' )` can be used instead.

Bug: T267447
Change-Id: Idef36ab0da345390409f8eaeed3592cd84ca980e
isekai
ZabeMath 4 years ago
parent 8d22bf2ec7
commit d1a8584e9a

@ -334,7 +334,6 @@ class TimelessTemplate extends BaseTemplate {
* practice we currently only check if it is or isn't 'iconsfirst' * 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', * * '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' * 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 * * 'link-style' to pass to getFooterLinks: "flat" to disable categorisation of links in a
* nested array * nested array
* *
@ -347,13 +346,12 @@ class TimelessTemplate extends BaseTemplate {
'class' => 'mw-footer', 'class' => 'mw-footer',
'order' => 'iconsfirst', 'order' => 'iconsfirst',
'link-prefix' => 'footer', 'link-prefix' => 'footer',
'icon-style' => 'icononly',
'link-style' => null 'link-style' => null
]; ];
// phpcs:ignore Generic.Files.LineLength.TooLong // 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'; '@phan-var array{id:string,class:string,order:string,link-prefix:string,link-style:?string} $options';
$validFooterIcons = $this->getFooterIcons( $options['icon-style'] ); $validFooterIcons = $this->get( 'footericons' );
$validFooterLinks = $this->getFooterLinks( $options['link-style'] ); $validFooterLinks = $this->getFooterLinks( $options['link-style'] );
$html = ''; $html = '';

Loading…
Cancel
Save