r98230 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98229‎ | r98230 | r98231 >
Date:16:17, 27 September 2011
Author:catrope
Status:ok
Tags:
Comment:
MoodBar: Rename Special:MoodBarFeedback to Special:FeedbackDashboard, part deux. Finishes move started in r98227.
Modified paths:
  • /trunk/extensions/MoodBar/ApiQueryMoodBarComments.php (modified) (history)
  • /trunk/extensions/MoodBar/MoodBar.alias.php (modified) (history)
  • /trunk/extensions/MoodBar/MoodBar.php (modified) (history)
  • /trunk/extensions/MoodBar/SpecialFeedbackDashboard.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MoodBar/ApiQueryMoodBarComments.php
@@ -94,7 +94,7 @@
9595 ApiResult::setContent( $r, $row->mbf_comment );
9696 }
9797 if ( isset( $prop['formatted'] ) ) {
98 - $r['formatted'] = SpecialMoodBarFeedback::formatListItem( $row );
 98+ $r['formatted'] = SpecialFeedbackDashboard::formatListItem( $row );
9999 }
100100 return $r;
101101 }
Index: trunk/extensions/MoodBar/MoodBar.alias.php
@@ -11,5 +11,5 @@
1212 /** English (English) */
1313 $specialPageAliases['en'] = array(
1414 'MoodBar' => array( 'MoodBar' ),
15 - 'MoodBarFeedback' => array( 'MoodBarFeedback' ),
 15+ 'FeedbackDashboard' => array( 'FeedbackDashboard' ),
1616 );
Index: trunk/extensions/MoodBar/SpecialFeedbackDashboard.php
@@ -1,10 +1,10 @@
22 <?php
33 /**
4 - * Special:MoodBarFeedback. Special page for viewing moodbar comments.
 4+ * Special:FeedbackDashboard. Special page for viewing moodbar comments.
55 */
6 -class SpecialMoodBarFeedback extends SpecialPage {
 6+class SpecialFeedbackDashboard extends SpecialPage {
77 public function __construct() {
8 - parent::__construct( 'MoodBarFeedback' );
 8+ parent::__construct( 'FeedbackDashboard' );
99 }
1010
1111 public function getDescription() {
@@ -19,7 +19,7 @@
2020 $filterType = '';
2121 $id = intval( $par );
2222 if ( $id > 0 ) {
23 - // Special:MoodBarFeedback/123 is an ID/permalink view
 23+ // Special:FeedbackDashboard/123 is an ID/permalink view
2424 $filters = array( 'id' => $id );
2525 $filterType = 'id';
2626 } else {
@@ -127,7 +127,7 @@
128128 //$links = Linker::userToolLinks( $row->mbf_user_id, $username );
129129 $links = $GLOBALS['wgUser']->getSkin()->userToolLinks( $row->mbf_user_id, $username ); // 1.17wmf1 compat
130130 $comment = htmlspecialchars( $row->mbf_comment );
131 - $permalinkURL = htmlspecialchars( SpecialPage::getTitleFor( 'MoodBarFeedback', $row->mbf_id )->getLinkURL() );
 131+ $permalinkURL = htmlspecialchars( SpecialPage::getTitleFor( 'FeedbackDashboard', $row->mbf_id )->getLinkURL() );
132132 $permalinkText = wfMessage( 'moodbar-feedback-permalink' )->escaped();
133133 $continueData = wfTimestamp( TS_MW, $row->mbf_timestamp ) . '|' . intval( $row->mbf_id );
134134
Index: trunk/extensions/MoodBar/MoodBar.php
@@ -33,8 +33,8 @@
3434 // Special pages
3535 $wgAutoloadClasses['SpecialMoodBar'] = dirname(__FILE__).'/SpecialMoodBar.php';
3636 $wgSpecialPages['MoodBar'] = 'SpecialMoodBar';
37 -$wgAutoloadClasses['SpecialMoodBarFeedback'] = dirname( __FILE__ ) . '/SpecialMoodBarFeedback.php';
38 -$wgSpecialPages['MoodBarFeedback'] = 'SpecialMoodBarFeedback';
 37+$wgAutoloadClasses['SpecialFeedbackDashboard'] = dirname( __FILE__ ) . '/SpecialFeedbackDashboard.php';
 38+$wgSpecialPages['FeedbackDashboard'] = 'SpecialFeedbackDashboard';
3939
4040 // User rights
4141 $wgAvailableRights[] = 'moodbar-view';

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r98227MoodBar: Rename SpecialMoodBarFeedback to SpecialFeedbackDashboard. This just...catrope16:13, 27 September 2011

Status & tagging log