r52149 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52148‎ | r52149 | r52150 >
Date:03:27, 19 June 2009
Author:tstarling
Status:ok
Tags:
Comment:
Fix fatal error. Logged on WM but exact cause uncertain.
Modified paths:
  • /trunk/phase3/includes/SkinTemplate.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/SkinTemplate.php
@@ -707,7 +707,7 @@
708708 );
709709
710710 // adds new section link if page is a current revision of a talk page or
711 - if ( ( $wgArticle->isCurrent() && $istalk ) || $wgOut->showNewSectionLink() ) {
 711+ if ( ( $wgArticle && $wgArticle->isCurrent() && $istalk ) || $wgOut->showNewSectionLink() ) {
712712 if ( !$wgOut->forceHideNewSectionLink() ) {
713713 $content_actions['addsection'] = array(
714714 'class' => $section == 'new' ? 'selected' : false,

Status & tagging log