r57390 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r57389‎ | r57390 | r57391 >
Date:18:04, 5 October 2009
Author:werdna
Status:deferred
Tags:
Comment:
Rewrite action=edit to lqt_method=edit&lqt_operand=X, fixes bug 20943
Modified paths:
  • /trunk/extensions/LiquidThreads/pages/ThreadPermalinkView.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/pages/ThreadPermalinkView.php
@@ -138,6 +138,13 @@
139139 return false;
140140 }
141141
 142+ // Handle action=edit stuff
 143+ if ( $this->request->getVal( 'action' ) == 'edit' ) {
 144+ // Rewrite to lqt_method = edit
 145+ $this->request->setVal( 'lqt_method', 'edit' );
 146+ $this->request->setVal( 'lqt_operand', $this->thread->id() );
 147+ }
 148+
142149 // Expose feed links.
143150 global $wgFeedClasses, $wgScriptPath, $wgServer;
144151 $thread = $this->thread->topmostThread()->title()->getPrefixedText();

Follow-up revisions

RevisionCommit summaryAuthorDate
r57396Merge r57390, turn action=edit into lqt_method=edit&lqt_operand=Xwerdna19:50, 5 October 2009
r57397Merge r57390, turn action=edit into lqt_method=edit&lqt_operand=Xwerdna19:59, 5 October 2009

Status & tagging log