浏览代码

Only output namespace if it is not empty

Jamie Thingelstad 12 年之前
父节点
当前提交
57bedd516e
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Foreground.skin.php

+ 3 - 2
Foreground.skin.php

@@ -125,8 +125,9 @@ class foregroundTemplate extends BaseTemplate {
 							<?php foreach( $this->data['content_actions'] as $key => $item ) { echo $this->makeListItem($key, $item); } ?>
 							<?php wfRunHooks( SkinTemplateToolboxEnd, array( &$this, true ) );  ?>
 						</ul>
-					<?php endif; ?>
-					<h4 class="namespace label"><?php print $this->getSkin()->getTitle()->getNsText(); ?></h4>
+					<?php endif;
+					$namespace = $this->getSkin()->getTitle()->getNsText();
+					if (!empty($namespace)) { ?><h4 class="namespace label"><?php print $this->getSkin()->getTitle()->getNsText(); ?></h4><?php } ?>
 					<h2 class="title"><?php $this->html('title') ?></h2>
 					<?php if ( $this->data['isarticle'] ) { ?><h3 id="siteSub"><?php $this->msg( 'tagline' ) ?></h3><?php } ?>
 					<h5 class="subtitle"><?php $this->html('subtitle') ?></h5>