Index: trunk/phase3/skins/Amethyst.pt |
— | — | @@ -97,9 +97,9 @@ |
98 | 98 | <h5 i18n:translate="string:toolbox">Toolbox</h5> |
99 | 99 | <div class="pBody"> |
100 | 100 | <ul> |
101 | | - <li id="t-whatlinkshere"><a href="${nav_urls/whatlinkshere/href}" |
| 101 | + <li id="t-whatlinkshere" tal:condition="notspecialpage"><a href="${nav_urls/whatlinkshere/href}" |
102 | 102 | i18n:translate="string:whatlinkshere">What links here</a></li> |
103 | | - <li id="t-recentchangeslinked"><a href="${nav_urls/recentchangeslinked/href}" |
| 103 | + <li id="t-recentchangeslinked" tal:condition="notspecialpage"><a href="${nav_urls/recentchangeslinked/href}" |
104 | 104 | i18n:translate="string:recentchangeslinked">Related Changes</a></li> |
105 | 105 | <li tal:condition="feeds" id="feedlinks"> |
106 | 106 | <span i18n:translate="string:feedlinks">Feeds:</span> |
Index: trunk/phase3/skins/MonoBook.pt |
— | — | @@ -97,9 +97,9 @@ |
98 | 98 | <h5 i18n:translate="string:toolbox">Toolbox</h5> |
99 | 99 | <div class="pBody"> |
100 | 100 | <ul> |
101 | | - <li id="t-whatlinkshere"><a href="${nav_urls/whatlinkshere/href}" |
| 101 | + <li id="t-whatlinkshere" tal:condition="notspecialpage"><a href="${nav_urls/whatlinkshere/href}" |
102 | 102 | i18n:translate="string:whatlinkshere">What links here</a></li> |
103 | | - <li id="t-recentchangeslinked"><a href="${nav_urls/recentchangeslinked/href}" |
| 103 | + <li id="t-recentchangeslinked" tal:condition="notspecialpage"><a href="${nav_urls/recentchangeslinked/href}" |
104 | 104 | i18n:translate="string:recentchangeslinked">Related Changes</a></li> |
105 | 105 | <li tal:condition="feeds" id="feedlinks"> |
106 | 106 | <span i18n:translate="string:feedlinks">Feeds:</span> |
Index: trunk/phase3/includes/SkinPHPTal.php |
— | — | @@ -172,6 +172,7 @@ |
173 | 173 | $tpl->setRef( 'stylename', $this->stylename ); |
174 | 174 | $tpl->setRef( 'loggedin', $this->loggedin ); |
175 | 175 | $tpl->set('nsclass', 'ns-'.$wgTitle->getNamespace()); |
| 176 | + $tpl->set('notspecialpage', $wgTitle->getNamespace() != NS_SPECIAL); |
176 | 177 | /* XXX currently unused, might get useful later |
177 | 178 | $tpl->set( "editable", ($wgTitle->getNamespace() != NS_SPECIAL ) ); |
178 | 179 | $tpl->set( "exists", $wgTitle->getArticleID() != 0 ); |
— | — | @@ -526,10 +527,8 @@ |
527 | 528 | $nav_urls['mainpage'] = array('href' => htmlspecialchars( $this->makeI18nUrl('mainpage'))); |
528 | 529 | $nav_urls['randompage'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Randompage'))); |
529 | 530 | $nav_urls['recentchanges'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Recentchanges'))); |
530 | | - $nav_urls['whatlinkshere'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Whatlinkshere', 'target='.urlencode( $this->thispage )))); |
531 | 531 | $nav_urls['currentevents'] = (wfMsg('currentevents') != '-') ? array('href' => htmlspecialchars( $this->makeI18nUrl('currentevents'))) : false; |
532 | 532 | $nav_urls['portal'] = (wfMsg('portal') != '-') ? array('href' => htmlspecialchars( $this->makeI18nUrl('portal-url'))) : false; |
533 | | - $nav_urls['recentchangeslinked'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Recentchangeslinked', 'target='.urlencode( $this->thispage )))); |
534 | 533 | $nav_urls['bugreports'] = array('href' => htmlspecialchars( $this->makeI18nUrl('bugreportspage'))); |
535 | 534 | // $nav_urls['sitesupport'] = array('href' => htmlspecialchars( $this->makeI18nUrl('sitesupportpage'))); |
536 | 535 | $nav_urls['sitesupport'] = array('href' => htmlspecialchars( $wgSiteSupportPage)); |
— | — | @@ -539,6 +538,11 @@ |
540 | 539 | } |
541 | 540 | $nav_urls['specialpages'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Specialpages'))); |
542 | 541 | |
| 542 | + if( $wgTitle->getNamespace() != NS_SPECIAL) { |
| 543 | + $nav_urls['whatlinkshere'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Whatlinkshere', 'target='.urlencode( $this->thispage )))); |
| 544 | + $nav_urls['recentchangeslinked'] = array('href' => htmlspecialchars( $this->makeSpecialUrl('Recentchangeslinked', 'target='.urlencode( $this->thispage )))); |
| 545 | + } |
| 546 | + |
543 | 547 | if( $wgTitle->getNamespace() == NS_USER || $wgTitle->getNamespace() == NS_USER_TALK ) { |
544 | 548 | $id = User::idFromName($wgTitle->getText()); |
545 | 549 | $ip = User::isIP($wgTitle->getText()); |
— | — | @@ -560,7 +564,6 @@ |
561 | 565 | } |
562 | 566 | } |
563 | 567 | |
564 | | - |
565 | 568 | return $nav_urls; |
566 | 569 | } |
567 | 570 | |