From: Gabriel Wicke Date: Tue, 30 Mar 2004 00:25:14 +0000 (+0000) Subject: cleanup, monobook X-Git-Tag: 1.3.0beta1~664 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=f8f34124e9cacc73dbd6a55cc85f28ed799bb5fb;p=lhc%2Fweb%2Fwiklou.git cleanup, monobook --- diff --git a/includes/SkinPHPTal.php b/includes/SkinPHPTal.php index 8ada94cd53..acff5990c1 100644 --- a/includes/SkinPHPTal.php +++ b/includes/SkinPHPTal.php @@ -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"; + } + } + ?>