r106130 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106129‎ | r106130 | r106131 >
Date:23:30, 13 December 2011
Author:bsitu
Status:ok
Tags:
Comment:
followup to -r105969 - adding domain name to wiki link so it can be linked from email
Modified paths:
  • /trunk/extensions/MoodBar/include/MoodBarHTMLEmailNotification.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MoodBar/include/MoodBarHTMLEmailNotification.php
@@ -133,7 +133,7 @@
134134 protected function composeCommonMailtext() {
135135 global $wgPasswordSender, $wgPasswordSenderName, $wgNoReplyAddress;
136136 global $wgEnotifFromEditor, $wgEnotifRevealEditorAddress;
137 - global $wgEnotifUseRealName;
 137+ global $wgEnotifUseRealName, $wgRequest;
138138
139139 $this->composed_common = true;
140140
@@ -161,7 +161,12 @@
162162 // build the response text
163163 $textResponse = htmlspecialchars( $this->response );
164164 $messageCache = MessageCache::singleton();
 165+
 166+ // This is ugly, it's used to add domain name to wiki link so it can be clicked from email.
 167+ $action = $wgRequest->getVal( 'action' );
 168+ $wgRequest->setVal( 'action', 'render' );
165169 $htmlResponse = $messageCache->parse( $this->response )->getText();
 170+ $wgRequest->setVal( 'action', $action );
166171
167172 //build the copy text
168173 $textEmailCopy = wfMessage( 'moodbar-enotif-body-copy-text' )->escaped();

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r105969Add HTML email notification support for Moodbar Feedback Responsebsitu01:56, 13 December 2011

Status & tagging log