http://www.mediawiki.org/wiki/Special:Code/MediaWiki/76239
Revision: 76239
Author: ialex
Date: 2010-11-07 11:11:32 +0000 (Sun, 07 Nov 2010)
Log Message:
-----------
* (bug 25488) Disallowing anonymous users to read pages no longer throws error
on discussion pages with vector as default skin
Modified Paths:
--------------
trunk/phase3/RELEASE-NOTES
trunk/phase3/skins/Vector.php
Modified: trunk/phase3/RELEASE-NOTES
===================================================================
--- trunk/phase3/RELEASE-NOTES 2010-11-07 10:06:22 UTC (rev 76238)
+++ trunk/phase3/RELEASE-NOTES 2010-11-07 11:11:32 UTC (rev 76239)
@@ -399,6 +399,8 @@
* (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.
Modified: trunk/phase3/skins/Vector.php
===================================================================
--- trunk/phase3/skins/Vector.php 2010-11-07 10:06:22 UTC (rev 76238)
+++ trunk/phase3/skins/Vector.php 2010-11-07 11:11:32 UTC (rev 76239)
@@ -140,7 +140,7 @@
);
// 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
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs