From: Alexandre Emsenhuber Date: Sun, 7 Nov 2010 11:11:32 +0000 (+0000) Subject: * (bug 25488) Disallowing anonymous users to read pages no longer throws error on... X-Git-Tag: 1.31.0-rc.0~34024 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=26dca7f45b4e1e6692bf0aa55cc6c9b9d59da8b3;p=lhc%2Fweb%2Fwiklou.git * (bug 25488) Disallowing anonymous users to read pages no longer throws error on discussion pages with vector as default skin --- 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