Fix condition for 'emptyPortlet' class

Follow-up to 6b9616d1ca, which
accidentally inverted the logic.

Bug: T196026
Change-Id: I98bc7529a1894b09ec3d80aab244327f526c022c
isekai
Bartosz Dziewoński 7 years ago
parent 5bd2509122
commit 70b5f24986

@ -199,7 +199,7 @@ class TimelessTemplate extends BaseTemplate {
$html = Html::rawElement( 'div', [
'role' => 'navigation',
'class' => [ 'mw-portlet', 'emptyPortlet' => (bool)$content ],
'class' => [ 'mw-portlet', 'emptyPortlet' => !$content ],
'id' => Sanitizer::escapeId( 'p-' . $name ),
'title' => Linker::titleAttrib( 'p-' . $name ),
'aria-labelledby' => $labelId

Loading…
Cancel
Save