[dw-free] Pass username to /tools/textmessage.bml.error.unavailable.notsetup
[commit: http://hg.dwscoalition.org/dw-free/rev/803e8c5fcb59]
http://bugs.dwscoalition.org/show_bug.cgi?id=781
Pass username to textmessage error for clarity.
Patch by
brownbetty.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=781
Pass username to textmessage error for clarity.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- htdocs/tools/textmessage.bml
- htdocs/tools/textmessage.bml.text
-------------------------------------------------------------------------------- diff -r 88ff4a2149f8 -r 803e8c5fcb59 htdocs/tools/textmessage.bml --- a/htdocs/tools/textmessage.bml Sun Apr 19 08:58:23 2009 +0000 +++ b/htdocs/tools/textmessage.bml Sun Apr 19 09:03:24 2009 +0000 @@ -46,13 +46,13 @@ body<= } unless (LJ::get_cap($u, "textmessaging")) { - $ret .= "$ML{'.error.unavailable.head'} h1?><?p $ML{'.error.unavailable.notpermitted'} p?>"; + $ret .= "<?h1 $ML{'.error.unavailable.head'} h1?><?p $ML{'.error.unavailable.notpermitted'} p?>"; return add_footer( $ret ); } unless ($tminfo) { $ret .= "<?h1 $ML{'.error.unavailable.head'} h1?><?p ". - BML::ml('.error.unavailable.notsetup', { sitenameshort => $LJ::SITENAMESHORT }) . " p?>"; + BML::ml('.error.unavailable.notsetup', { user => $user, sitenameshort => $LJ::SITENAMESHORT }) . " p?>"; return add_footer( $ret ); } diff -r 88ff4a2149f8 -r 803e8c5fcb59 htdocs/tools/textmessage.bml.text --- a/htdocs/tools/textmessage.bml.text Sun Apr 19 08:58:23 2009 +0000 +++ b/htdocs/tools/textmessage.bml.text Sun Apr 19 09:03:24 2009 +0000 @@ -29,7 +29,7 @@ .error.unavailable.notpermitted=This user's account type does not permit text messaging. -.error.unavailable.notsetup=This user has not setup their text messaging information at [[sitenameshort]], or they've turned it off. +.error.unavailable.notsetup=[[user]] has not setup their text messaging information at [[sitenameshort]], or they've turned it off. .footer.disclaimer.text=<B>Disclaimer:</B> The reliability of text messaging should not be trusted in dealing with emergencies. --------------------------------------------------------------------------------