r96792 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r96791‎ | r96792 | r96793 >
Date:15:58, 11 September 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Special:Survey => Special:EditSurvey
Modified paths:
  • /trunk/extensions/Survey/Survey.alias.php (modified) (history)
  • /trunk/extensions/Survey/Survey.i18n.php (modified) (history)
  • /trunk/extensions/Survey/Survey.php (modified) (history)
  • /trunk/extensions/Survey/specials/SpecialSurvey.php (modified) (history)
  • /trunk/extensions/Survey/specials/SpecialSurveys.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Survey/Survey.php
@@ -69,12 +69,12 @@
7070 $wgAutoloadClasses['SpecialSurveyStats'] = dirname( __FILE__ ) . '/specials/SpecialSurveyStats.php';
7171 $wgAutoloadClasses['SpecialTakeSurvey'] = dirname( __FILE__ ) . '/specials/SpecialTakeSurvey.php';
7272
73 -$wgSpecialPages['Survey'] = 'SpecialSurvey';
 73+$wgSpecialPages['EditSurvey'] = 'SpecialSurvey';
7474 $wgSpecialPages['Surveys'] = 'SpecialSurveys';
7575 $wgSpecialPages['SurveyStats'] = 'SpecialSurveyStats';
7676 $wgSpecialPages['TakeSurvey'] = 'SpecialTakeSurvey';
7777
78 -$wgSpecialPageGroups['Survey'] = 'other';
 78+$wgSpecialPageGroups['EditSurvey'] = 'other';
7979 $wgSpecialPageGroups['Surveys'] = 'other';
8080 $wgSpecialPageGroups['SurveyStats'] = 'other';
8181 $wgSpecialPageGroups['TakeSurvey'] = 'other';
Index: trunk/extensions/Survey/Survey.i18n.php
@@ -25,7 +25,7 @@
2626 'right-surveysubmit' => 'Participate in surveys',
2727
2828 // Special page names
29 - 'special-survey' => 'Survey admin',
 29+ 'special-editsurvey' => 'Survey admin',
3030 'special-surveys' => 'Surveys admin',
3131 'special-surveystats' => 'Survey statistics',
3232 'special-takesurvey' => 'Take survey',
Index: trunk/extensions/Survey/specials/SpecialSurvey.php
@@ -19,7 +19,7 @@
2020 * @since 0.1
2121 */
2222 public function __construct() {
23 - parent::__construct( 'Survey', 'surveyadmin', false );
 23+ parent::__construct( 'EditSurvey', 'surveyadmin', false );
2424 }
2525
2626 /**
Index: trunk/extensions/Survey/specials/SpecialSurveys.php
@@ -37,7 +37,7 @@
3838 if ( $wgRequest->wasPosted()
3939 && $wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) )
4040 && $wgRequest->getCheck( 'newsurvey' ) ) {
41 - $this->getOutput()->redirect( SpecialPage::getTitleFor( 'Survey', $wgRequest->getVal( 'newsurvey' ) )->getLocalURL() );
 41+ $this->getOutput()->redirect( SpecialPage::getTitleFor( 'EditSurvey', $wgRequest->getVal( 'newsurvey' ) )->getLocalURL() );
4242 } else {
4343 $this->displaySurveys();
4444 }
@@ -153,7 +153,7 @@
154154 Html::element(
155155 'a',
156156 array(
157 - 'href' => SpecialPage::getTitleFor( 'Survey', $survey->getField( 'name' ) )->getLocalURL()
 157+ 'href' => SpecialPage::getTitleFor( 'EditSurvey', $survey->getField( 'name' ) )->getLocalURL()
158158 ),
159159 wfMsg( 'surveys-special-edit' )
160160 ) .
Index: trunk/extensions/Survey/Survey.alias.php
@@ -16,7 +16,7 @@
1717
1818 /** English (English) */
1919 $specialPageAliases['en'] = array(
20 - 'Survey' => array( 'Survey' ),
 20+ 'EditSurvey' => array( 'EditSurvey', 'Survey' ),
2121 'Surveys' => array( 'Surveys' ),
2222 'SurveyStats' => array( 'SurveyStats', 'SurveyStatistics' ),
2323 'TakeSurvey' => array( 'TakeSurvey' ),

Status & tagging log