r105378 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105377‎ | r105378 | r105379 >
Date:23:09, 6 December 2011
Author:demon
Status:ok
Tags:
Comment:
Use static Parser::cleanSigInSig() rather than $wgParser object, ping r105377
Modified paths:
  • /trunk/extensions/MoodBar/ApiFeedbackDashboardResponse.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MoodBar/ApiFeedbackDashboardResponse.php
@@ -3,7 +3,7 @@
44 class ApiFeedbackDashboardResponse extends ApiBase {
55
66 public function execute() {
7 - global $wgRequest, $wgUser, $wgParser;
 7+ global $wgRequest, $wgUser;
88
99 if ( $wgUser->isAnon() ) {
1010 $this->dieUsage( "You don't have permission to do that", 'permission-denied' );
@@ -42,7 +42,7 @@
4343 'appendtext' => ( $talkPage->exists() ? "\n\n" : '' ) .
4444 $feedback_link . "\n" .
4545 '<span id="feedback-dashboard-response-' . $item->getProperty('id') . '"></span>' . "\n\n" .
46 - $wgParser->cleanSigInSig($params['response']) . "\n\n~~~~",
 46+ Parser::cleanSigInSig($params['response']) . "\n\n~~~~",
4747 'token' => $params['token'],
4848 'summary' => '',
4949 'notminor' => true,

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r105377Minor tweaks to cleanSig(inSig)...demon23:07, 6 December 2011

Status & tagging log