Merge "Don't output an empty h1 element"

This commit is contained in:
jenkins-bot 2015-05-12 12:37:43 +00:00 committed by Gerrit Code Review
commit cf77539551
1 changed files with 2 additions and 0 deletions

View File

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