浏览代码

Deal with underscores in namespace name

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

+ 2 - 2
Foreground.skin.php

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