r52452 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52451‎ | r52452 | r52453 >
Date:12:29, 26 June 2009
Author:werdna
Status:deferred
Tags:
Comment:
When coming from a redlink, don't edit the header, jump straight to the thread page.
Modified paths:
  • /trunk/extensions/LiquidThreads/classes/LqtDispatch.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/classes/LqtDispatch.php
@@ -23,7 +23,15 @@
2424 if ( $title->getNamespace() == NS_LQT_THREAD + 1 /* talk page */ ) {
2525 // Threads don't have talk pages; redirect to the thread page.
2626 $output->redirect( $title->getSubjectPage()->getFullUrl() );
 27+ return false;
2728 }
 29+
 30+ // If we came here from a red-link, redirect to the thread page.
 31+ $redlink = $request->getCheck( 'redlink' );
 32+ if( $redlink ) {
 33+ $output->redirect( $title->getFullURL() );
 34+ return false;
 35+ }
2836
2937 /* Certain actions apply to the "header", which is stored in the actual talkpage
3038 in the database. Drop everything and behave like a normal page if those

Status & tagging log