* (bug 25488) Disallowing anonymous users to read pages no longer throws error on...
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 7 Nov 2010 11:11:32 +0000 (11:11 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Sun, 7 Nov 2010 11:11:32 +0000 (11:11 +0000)
RELEASE-NOTES
skins/Vector.php

index 1e7d12f..53069e5 100644 (file)
@@ -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.
index 479d06d..4da6bf3 100644 (file)
@@ -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