r105067 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r105066‎ | r105067 | r105068 >
Date:12:48, 3 December 2011
Author:nad
Status:deferred
Tags:
Comment:
name in sent message should be watchingUser not editor
Modified paths:
  • /trunk/extensions/CategoryWatch/CategoryWatch.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CategoryWatch/CategoryWatch.php
@@ -14,7 +14,7 @@
1515 * @licence GNU General Public Licence 2.0 or later
1616 */
1717
18 -define( 'CATEGORYWATCH_VERSION', '1.2.1, 2010-08-05' );
 18+define( 'CATEGORYWATCH_VERSION', '1.2.2, 2011-12-03' );
1919
2020 # Whether or not to also send notificaton to the person who made the change
2121 $wgCategoryWatchNotifyEditor = true;
@@ -173,7 +173,7 @@
174174 # Reveal the page editor's address as REPLY-TO address only if
175175 # the user has not opted-out and the option is enabled at the
176176 # global configuration level.
177 - $name = $wgEnotifUseRealName ? $editor->getRealName() : $editor->getName();
 177+ $name = $wgEnotifUseRealName ? $watchingUser->getRealName() : $watchingUser->getName();
178178 if ( $wgEnotifRevealEditorAddress
179179 && ( $editor->getEmail() != '' )
180180 && $editor->getOption( 'enotifrevealaddr' ) ) {

Status & tagging log