r52365 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r52364‎ | r52365 | r52366 >
Date:17:09, 24 June 2009
Author:werdna
Status:deferred
Tags:
Comment:
Fix summarize link, and add a Summarize link to the Actions menu
Modified paths:
  • /trunk/extensions/LiquidThreads/classes/LqtView.php (modified) (history)
  • /trunk/extensions/LiquidThreads/i18n/Lqt.i18n.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiquidThreads/i18n/Lqt.i18n.php
@@ -157,6 +157,7 @@
158158 'lqt-thread-edited-author'=> 'Edited by author',
159159 'lqt-thread-edited-others'=> 'Edited by other users',
160160 'lqt-header-actions' => 'Actions',
 161+ 'lqt_summarize_link' => 'Summarize',
161162
162163 // Logging
163164 'lqt-log-name' => 'Threaded discussion log',
Index: trunk/extensions/LiquidThreads/classes/LqtView.php
@@ -569,6 +569,12 @@
570570 $commands['history'] = array( 'label' => wfMsgExt( 'history_short', 'parseinline' ),
571571 'href' => $history_url,
572572 'enabled' => true );
 573+
 574+ $commands['summarize'] = array(
 575+ 'label' => wfMsgExt( 'lqt_summarize_link', 'parseinline' ),
 576+ 'href' => self::permalinkUrl( $thread, 'summarize' ),
 577+ 'enabled' => true,
 578+ );
573579
574580 if ( $this->user->isAllowed( 'delete' ) ) {
575581 $threadText = $thread->title()->getPrefixedText();
@@ -967,7 +973,7 @@
968974 wfLoadExtensionMessages( 'LiquidThreads' );
969975
970976 $permalink_text = wfMsgNoTrans( 'lqt_summary_notice_link' );
971 - $permalink = self::permalink( $thread, $permalink_text );
 977+ $permalink = self::permalink( $thread, $permalink_text, 'summarize' );
972978 $msg = wfMsgExt( 'lqt_summary_notice', array('parseinline', 'replaceafter'),
973979 array( $permalink, $thread->getArchiveStartDays() ) );
974980 $msg = Xml::tags( 'p', array( 'class' => 'lqt_summary_notice' ), $msg );

Status & tagging log