Index: trunk/extensions/Survey/Survey.php |
— | — | @@ -69,12 +69,12 @@ |
70 | 70 | $wgAutoloadClasses['SpecialSurveyStats'] = dirname( __FILE__ ) . '/specials/SpecialSurveyStats.php'; |
71 | 71 | $wgAutoloadClasses['SpecialTakeSurvey'] = dirname( __FILE__ ) . '/specials/SpecialTakeSurvey.php'; |
72 | 72 | |
73 | | -$wgSpecialPages['Survey'] = 'SpecialSurvey'; |
| 73 | +$wgSpecialPages['EditSurvey'] = 'SpecialSurvey'; |
74 | 74 | $wgSpecialPages['Surveys'] = 'SpecialSurveys'; |
75 | 75 | $wgSpecialPages['SurveyStats'] = 'SpecialSurveyStats'; |
76 | 76 | $wgSpecialPages['TakeSurvey'] = 'SpecialTakeSurvey'; |
77 | 77 | |
78 | | -$wgSpecialPageGroups['Survey'] = 'other'; |
| 78 | +$wgSpecialPageGroups['EditSurvey'] = 'other'; |
79 | 79 | $wgSpecialPageGroups['Surveys'] = 'other'; |
80 | 80 | $wgSpecialPageGroups['SurveyStats'] = 'other'; |
81 | 81 | $wgSpecialPageGroups['TakeSurvey'] = 'other'; |
Index: trunk/extensions/Survey/Survey.i18n.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | 'right-surveysubmit' => 'Participate in surveys', |
27 | 27 | |
28 | 28 | // Special page names |
29 | | - 'special-survey' => 'Survey admin', |
| 29 | + 'special-editsurvey' => 'Survey admin', |
30 | 30 | 'special-surveys' => 'Surveys admin', |
31 | 31 | 'special-surveystats' => 'Survey statistics', |
32 | 32 | 'special-takesurvey' => 'Take survey', |
Index: trunk/extensions/Survey/specials/SpecialSurvey.php |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | * @since 0.1 |
21 | 21 | */ |
22 | 22 | public function __construct() { |
23 | | - parent::__construct( 'Survey', 'surveyadmin', false ); |
| 23 | + parent::__construct( 'EditSurvey', 'surveyadmin', false ); |
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
Index: trunk/extensions/Survey/specials/SpecialSurveys.php |
— | — | @@ -37,7 +37,7 @@ |
38 | 38 | if ( $wgRequest->wasPosted() |
39 | 39 | && $wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) ) |
40 | 40 | && $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() ); |
42 | 42 | } else { |
43 | 43 | $this->displaySurveys(); |
44 | 44 | } |
— | — | @@ -153,7 +153,7 @@ |
154 | 154 | Html::element( |
155 | 155 | 'a', |
156 | 156 | array( |
157 | | - 'href' => SpecialPage::getTitleFor( 'Survey', $survey->getField( 'name' ) )->getLocalURL() |
| 157 | + 'href' => SpecialPage::getTitleFor( 'EditSurvey', $survey->getField( 'name' ) )->getLocalURL() |
158 | 158 | ), |
159 | 159 | wfMsg( 'surveys-special-edit' ) |
160 | 160 | ) . |
Index: trunk/extensions/Survey/Survey.alias.php |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | |
18 | 18 | /** English (English) */ |
19 | 19 | $specialPageAliases['en'] = array( |
20 | | - 'Survey' => array( 'Survey' ), |
| 20 | + 'EditSurvey' => array( 'EditSurvey', 'Survey' ), |
21 | 21 | 'Surveys' => array( 'Surveys' ), |
22 | 22 | 'SurveyStats' => array( 'SurveyStats', 'SurveyStatistics' ), |
23 | 23 | 'TakeSurvey' => array( 'TakeSurvey' ), |