Don't output an empty h1 element

Bug: T97891
Change-Id: Iad1fec58773e42b66030bff505113e43e66e807f
This commit is contained in:
Florian 2015-05-09 16:09:23 +02:00
parent d32e46de60
commit 19b3bda973

View file

@ -106,12 +106,14 @@ class VectorTemplate extends BaseTemplate {
if ( is_callable( array( $this, 'getIndicators' ) ) ) {
echo $this->getIndicators();
}
if ( !empty( $this->data['title'] ) ) {
?>
<h1 id="firstHeading" class="firstHeading" lang="<?php
$this->data['pageLanguage'] =
$this->getSkin()->getTitle()->getPageViewLanguage()->getHtmlCode();
$this->text( 'pageLanguage' );
?>"><?php $this->html( 'title' ) ?></h1>
<?php } ?>
<?php $this->html( 'prebodyhtml' ) ?>
<div id="bodyContent" class="mw-body-content">
<?php