Index: trunk/extensions/CategoryWatch/CategoryWatch.php |
— | — | @@ -14,7 +14,7 @@ |
15 | 15 | * @licence GNU General Public Licence 2.0 or later |
16 | 16 | */ |
17 | 17 | |
18 | | -define( 'CATEGORYWATCH_VERSION', '1.2.1, 2010-08-05' ); |
| 18 | +define( 'CATEGORYWATCH_VERSION', '1.2.2, 2011-12-03' ); |
19 | 19 | |
20 | 20 | # Whether or not to also send notificaton to the person who made the change |
21 | 21 | $wgCategoryWatchNotifyEditor = true; |
— | — | @@ -173,7 +173,7 @@ |
174 | 174 | # Reveal the page editor's address as REPLY-TO address only if |
175 | 175 | # the user has not opted-out and the option is enabled at the |
176 | 176 | # global configuration level. |
177 | | - $name = $wgEnotifUseRealName ? $editor->getRealName() : $editor->getName(); |
| 177 | + $name = $wgEnotifUseRealName ? $watchingUser->getRealName() : $watchingUser->getName(); |
178 | 178 | if ( $wgEnotifRevealEditorAddress |
179 | 179 | && ( $editor->getEmail() != '' ) |
180 | 180 | && $editor->getOption( 'enotifrevealaddr' ) ) { |