Use Skin:getAfterPortlet instead of deprecated BaseTemplate:getAfterPortlet

Additional change:
* Add .DS_Store to gitignore

Change-Id: I15ed3c820823782d28f11f3724d56736db0ca3e0
isekai
bwang 4 years ago committed by Jdlrobson
parent 40eb3dad15
commit 954929e27e

1
.gitignore vendored

@ -2,3 +2,4 @@
/vendor /vendor
/composer.lock /composer.lock
/.eslintcache /.eslintcache
.DS_Store

@ -283,7 +283,16 @@ class TimelessTemplate extends BaseTemplate {
$bodyDivOptions['id'] = $options['body-id']; $bodyDivOptions['id'] = $options['body-id'];
} }
$afterPortlet = $this->getAfterPortlet( $name ); $afterPortlet = '';
$content = $this->getSkin()->getAfterPortlet( $name );
if ( $content !== '' ) {
$afterPortlet = Html::rawElement(
'div',
[ 'class' => [ 'after-portlet', 'after-portlet-' . $name ] ],
$content
);
}
if ( $name === 'lang' ) { if ( $name === 'lang' ) {
$this->afterLangPortlet = $afterPortlet; $this->afterLangPortlet = $afterPortlet;
} }

Loading…
Cancel
Save