Index: trunk/extensions/MoodBar/ApiFeedbackDashboardResponse.php |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | class ApiFeedbackDashboardResponse extends ApiBase { |
5 | 5 | |
6 | 6 | public function execute() { |
7 | | - global $wgRequest, $wgUser, $wgContLang, $wgParser; |
| 7 | + global $wgRequest, $wgUser, $wgParser; |
8 | 8 | |
9 | 9 | if ( $wgUser->isAnon() ) { |
10 | 10 | $this->dieUsage( "You don't have permission to do that", 'permission-denied' ); |
— | — | @@ -32,8 +32,9 @@ |
33 | 33 | if ( $commenter !== null && $commenter->isAnon() == false ) { |
34 | 34 | $talkPage = $commenter->getTalkPage(); |
35 | 35 | |
36 | | - $feedback_link = wfMessage('moodbar-feedback-response-title')->params($wgContLang->getNsText( NS_SPECIAL ) . |
37 | | - ':FeedbackDashboard/' . $item->getProperty('feedback'))->escaped(); |
| 36 | + $feedback_link = wfMessage('moodbar-feedback-response-title')-> |
| 37 | + params( SpecialPage::getTitleFor( 'FeedbackDashboard', $item->getProperty('feedback') )-> |
| 38 | + getPrefixedText() )->escaped(); |
38 | 39 | |
39 | 40 | $api = new ApiMain( new FauxRequest( array( |
40 | 41 | 'action' => 'edit', |