cleanup, monobook

This commit is contained in:
Gabriel Wicke 2004-03-30 00:25:14 +00:00
parent 6dd8839f0b
commit f8f34124e9

View file

@ -159,7 +159,7 @@
$content_actions['article'] = array('class' => (!Namespace::isTalk( $wgTitle->getNamespace())) ? 'selected' : '',
'text' => wfMsg('article'),
'href' => $this->makeArticleUrl($wgTitle->getPrefixedDbKey()),
'href' => $this->makeArticleUrl($thispage),
'ttip' => wfMsg('tooltip-article'),
'akey' => wfMsg('accesskey-article'));
@ -241,8 +241,8 @@
} else {
$content_actions['move'] = array('class' => 'inactive',
'text' => wfMsg('move'),
'href' => '',
'akey' => '');
'href' => false,
'akey' => false);
}
}
@ -265,20 +265,13 @@
}
}
} else {
/* show special page actions */
/* show special page tab */
$content_actions['article'] = array('class' => 'selected',
'text' => wfMsg('specialpage'),
'href' => 'javascript:void()',
'href' => false,
'ttip' => wfMsg('tooltip-specialpage'),
'akey' => '');
/*if ($wgTitle->getDbKey() == 'Movepage') {
$content_actions['move'] = array('class' => 'selected',
'i18n_key' => 'move',
'href' => '',
'akey' => '');
}*/
'akey' => false);
}
$tpl->setRef('content_actions', &$content_actions);
@ -359,4 +352,12 @@
}
}
class SkinMonoBook extends SkinPHPTal {
function initPage() {
SkinPHPTal::initPage();
$this->skinname = "monobook";
$this->template = "xhtml_slim";
}
}
?>