Commit 1816110b authored by Tobias Haider's avatar Tobias Haider
Browse files

Fix for page titles

parent 3444f62b
......@@ -68,9 +68,9 @@ class TweekiTemplate extends BaseTemplate {
}
//set 'namespace' and 'title_formatted' variables
$this->data['namespace'] = str_replace( "_", " ", $this->getSkin()->getTitle()->getNsText() );
$this->data['title_formatted'] = $this->data['title'];
if( $this->data['namespace'] !== '') {
$this->data['namespace'] = str_replace( "_", " ", $this->getSkin()->getTitle()->getNsText() );
if( $this->getSkin()->getTitle()->exists() && $this->data['namespace'] !== '' ) {
$this->data['title_formatted'] = '<span class="namespace">' . $this->data['namespace'] . ":</span> " . $this->getSkin()->getTitle()->getText();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment