Index: trunk/extensions/MoodBar/include/MoodBarHTMLEmailNotification.php |
— | — | @@ -133,7 +133,7 @@ |
134 | 134 | protected function composeCommonMailtext() { |
135 | 135 | global $wgPasswordSender, $wgPasswordSenderName, $wgNoReplyAddress; |
136 | 136 | global $wgEnotifFromEditor, $wgEnotifRevealEditorAddress; |
137 | | - global $wgEnotifUseRealName; |
| 137 | + global $wgEnotifUseRealName, $wgRequest; |
138 | 138 | |
139 | 139 | $this->composed_common = true; |
140 | 140 | |
— | — | @@ -161,7 +161,12 @@ |
162 | 162 | // build the response text |
163 | 163 | $textResponse = htmlspecialchars( $this->response ); |
164 | 164 | $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' ); |
165 | 169 | $htmlResponse = $messageCache->parse( $this->response )->getText(); |
| 170 | + $wgRequest->setVal( 'action', $action ); |
166 | 171 | |
167 | 172 | //build the copy text |
168 | 173 | $textEmailCopy = wfMessage( 'moodbar-enotif-body-copy-text' )->escaped(); |