mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-09-25 11:17:35 +00:00
Display the page title on pages named '0'
Using empty() will consider the string '0' to be false, so use isset instead. Bug: T103077 Change-Id: I4b07d55ba59cbbc9eeb3784fbbe8ae9e9ae15c3a
This commit is contained in:
parent
3e582850e7
commit
a85145a5c8
|
@ -110,7 +110,7 @@ class VectorTemplate extends BaseTemplate {
|
|||
if ( is_callable( array( $this, 'getIndicators' ) ) ) {
|
||||
echo $this->getIndicators();
|
||||
}
|
||||
if ( !empty( $this->data['title'] ) ) {
|
||||
if ( isset( $this->data['title'] ) ) {
|
||||
?>
|
||||
<h1 id="firstHeading" class="firstHeading" lang="<?php $this->text( 'pageLanguage' ); ?>"><?php
|
||||
$this->html( 'title' )
|
||||
|
|
Loading…
Reference in a new issue