Index: trunk/extensions/CategoryWatch/CategoryWatch.php |
— | — | @@ -153,7 +153,10 @@ |
154 | 154 | |
155 | 155 | # Wrap message with common body and send to each watcher |
156 | 156 | $page = $title->getPrefixedText(); |
157 | | - $adminAddress = new MailAddress( $wgPasswordSender, 'WikiAdmin' ); |
| 157 | + # $wgPasswordSenderName was introduced only in MW 1.17 |
| 158 | + global $wgPasswordSenderName; |
| 159 | + $adminAddress = new MailAddress( $wgPasswordSender, |
| 160 | + isset( $wgPasswordSenderName ) ? $wgPasswordSenderName : 'WikiAdmin' ); |
158 | 161 | $editorAddress = new MailAddress( $editor ); |
159 | 162 | $summary = $summary ? $summary : ' - '; |
160 | 163 | $medit = $medit ? wfMsg( 'minoredit' ) : ''; |