From: Antoine Musso Date: Sun, 11 Dec 2005 19:10:53 +0000 (+0000) Subject: Fix 2536 : 'Related Changes' being shown on non existent pages X-Git-Tag: 1.6.0~961 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=e1ca00c34ffc7768dab909bfdc63ccc63d5fcfc9;p=lhc%2Fweb%2Fwiklou.git Fix 2536 : 'Related Changes' being shown on non existent pages --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 834d9f72b1..f0d542335a 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -841,9 +841,11 @@ class SkinTemplate extends Skin { $nav_urls['whatlinkshere'] = array( 'href' => $this->makeSpecialUrl("Whatlinkshere/$this->thispage") ); - $nav_urls['recentchangeslinked'] = array( - 'href' => $this->makeSpecialUrl("Recentchangeslinked/$this->thispage") - ); + if( $this->mTitle->getArticleId() ) { + $nav_urls['recentchangeslinked'] = array( + 'href' => $this->makeSpecialUrl("Recentchangeslinked/$this->thispage") + ); + } if ($wgUseTrackbacks) $nav_urls['trackbacklink'] = array( 'href' => $wgTitle->trackbackURL() diff --git a/skins/MonoBook.php b/skins/MonoBook.php index 42aaa9ce61..d119577634 100644 --- a/skins/MonoBook.php +++ b/skins/MonoBook.php @@ -160,10 +160,14 @@ class MonoBookTemplate extends QuickTemplate {
msg('toolbox') ?>