From e1ca00c34ffc7768dab909bfdc63ccc63d5fcfc9 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sun, 11 Dec 2005 19:10:53 +0000 Subject: [PATCH] Fix 2536 : 'Related Changes' being shown on non existent pages --- includes/SkinTemplate.php | 8 +++++--- skins/MonoBook.php | 12 ++++++++---- 2 files changed, 13 insertions(+), 7 deletions(-) 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') ?>