r57855 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57854‎ | r57855 | r57856 >
Date:06:40, 17 October 2009
Author:werdna
Status:deferred
Tags:
Comment:
Fix fatal error (regression, on post edit)
Modified paths:
  • /trunk/extensions/LiquidThreads/classes/View.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/classes/View.php
@@ -367,8 +367,14 @@
368368 $article = $thread->root();
369369 }
370370
371 - LqtHooks::$editTalkpage = $edit_type == 'new'
372 - ? $this->article : $edit_applies_to->article();
 371+ $talkpage = $this->article;
 372+ if ( $thread ) {
 373+ $talkpage = $thread->article();
 374+ } elseif ( $edit_applies_to ) {
 375+ $talkpage = $edit_applies_to->article();
 376+ }
 377+
 378+ LqtHooks::$editTalkpage = $talkpage;
373379 LqtHooks::$editArticle = $article;
374380 LqtHooks::$editThread = $thread;
375381 LqtHooks::$editType = $edit_type;

Follow-up revisions

RevisionCommit summaryAuthorDate
r57856Merge r57855werdna06:47, 17 October 2009

Status & tagging log