From 26dca7f45b4e1e6692bf0aa55cc6c9b9d59da8b3 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 7 Nov 2010 11:11:32 +0000 Subject: [PATCH] * (bug 25488) Disallowing anonymous users to read pages no longer throws error on discussion pages with vector as default skin --- RELEASE-NOTES | 2 ++ skins/Vector.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 1e7d12f464..53069e5bd8 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -399,6 +399,8 @@ LocalSettings.php. The specific bugs are listed below in the general notes. * (bug 19129) Only show MyISAM/InnoDB when supported * (bug 17762) Only show other e-mail options when e-mail is globally enabled * Cache multiple sizes of InstantCommons thumbnails +* (bug 25488) Disallowing anonymous users to read pages no longer throws error + on discussion pages with vector as default skin === API changes in 1.17 === * (bug 22738) Allow filtering by action type on query=logevent. diff --git a/skins/Vector.php b/skins/Vector.php index 479d06db06..4da6bf37c7 100644 --- a/skins/Vector.php +++ b/skins/Vector.php @@ -140,7 +140,7 @@ class SkinVector extends SkinTemplate { ); // Checks if this is a current rev of talk page and we should show a new // section link - if ( ( $isTalk && $wgArticle->isCurrent() ) || ( $wgOut->showNewSectionLink() ) ) { + if ( ( $isTalk && $wgArticle && $wgArticle->isCurrent() ) || ( $wgOut->showNewSectionLink() ) ) { // Checks if we should ever show a new section link if ( !$wgOut->forceHideNewSectionLink() ) { // Adds new section link -- 2.20.1