Explorar o código

Deal with underscores in namespace name

Jamie Thingelstad %!s(int64=12) %!d(string=hai) anos
pai
achega
2fb8929fdf
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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>