mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-09-24 02:39:20 +00:00
Avoid empty class="" without value
Before this change the HTML contains: <div id="p-personal" role="navigation" class="" ...> or <div id="p-personal" role="navigation" class=" emptyPortlet" ...> After this change the HTML contains: <div id="p-personal" role="navigation" ...> or <div id="p-personal" role="navigation" class="emptyPortlet" ...> Change-Id: Ic686b958940afc958693d0031ac31e5f783960a9
This commit is contained in:
parent
8994137e2a
commit
82cbdb8111
|
@ -411,11 +411,11 @@ class VectorTemplate extends BaseTemplate {
|
|||
break;
|
||||
case 'PERSONAL':
|
||||
?>
|
||||
<div id="p-personal" role="navigation" class="<?php
|
||||
<div id="p-personal" role="navigation"<?php
|
||||
if ( count( $this->data['personal_urls'] ) == 0 ) {
|
||||
echo ' emptyPortlet';
|
||||
echo ' class="emptyPortlet"';
|
||||
}
|
||||
?>" aria-labelledby="p-personal-label">
|
||||
?> aria-labelledby="p-personal-label">
|
||||
<h3 id="p-personal-label"><?php $this->msg( 'personaltools' ) ?></h3>
|
||||
<ul<?php $this->html( 'userlangattributes' ) ?>>
|
||||
<?php
|
||||
|
|
Loading…
Reference in a new issue