Update documentation for used message keys in Special:Emailuser
authorSiebrand Mazeland <siebrand@kitano.nl>
Thu, 10 Apr 2014 08:05:35 +0000 (10:05 +0200)
committerSiebrand Mazeland <siebrand@kitano.nl>
Thu, 10 Apr 2014 08:05:35 +0000 (10:05 +0200)
These had been tucked away uncomfortably :(.

Change-Id: I1b387751722d944de8a50d31ce14595c80f65f54

includes/specials/SpecialEmailuser.php

index c867f06..fbddfbd 100644 (file)
@@ -138,6 +138,7 @@ class SpecialEmailUser extends UnlistedSpecialPage {
                $ret = self::getTarget( $this->mTarget );
                if ( !$ret instanceof User ) {
                        if ( $this->mTarget != '' ) {
+                               // Messages used here: notargettext, noemailtext, nowikiemailtext
                                $ret = ( $ret == 'notarget' ) ? 'emailnotarget' : ( $ret . 'text' );
                                $out->wrapWikiMsg( "<p class='error'>$1</p>", $ret );
                        }
@@ -305,6 +306,7 @@ class SpecialEmailUser extends UnlistedSpecialPage {
 
                $target = self::getTarget( $data['Target'] );
                if ( !$target instanceof User ) {
+                       // Messages used here: notargettext, noemailtext, nowikiemailtext
                        return $context->msg( $target . 'text' )->parseAsBlock();
                }