|
@@ -127,8 +127,13 @@ class foregroundTemplate extends BaseTemplate {
|
|
|
</ul>
|
|
|
<?php endif;
|
|
|
$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>
|
|
|
+ $displaytitle = $this->data['title'];
|
|
|
+ if (!empty($namespace)) {
|
|
|
+ $pagetitle = $this->getSkin()->getTitle();
|
|
|
+ $newtitle = str_replace($namespace.':', '', $pagetitle);
|
|
|
+ $displaytitle = str_replace($pagetitle, $newtitle, $displaytitle);
|
|
|
+ ?><h4 class="namespace label"><?php print $namespace; ?></h4><?php } ?>
|
|
|
+ <h2 class="title"><?php print $displaytitle; ?></h2>
|
|
|
<?php if ( $this->data['isarticle'] ) { ?><h3 id="siteSub"><?php $this->msg( 'tagline' ) ?></h3><?php } ?>
|
|
|
<h5 class="subtitle"><?php $this->html('subtitle') ?></h5>
|
|
|
<div class="clear_both"></div>
|