ソースを参照

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 ) );  ?>
 						</ul>
 					<?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>
 					<?php if ( $this->data['isarticle'] ) { ?><h3 id="siteSub"><?php $this->msg( 'tagline' ) ?></h3><?php } ?>
 					<h5 class="subtitle"><?php $this->html('subtitle') ?></h5>