Index: trunk/phase3/includes/SpecialEmailuser.php |
— | — | @@ -92,6 +92,7 @@ |
93 | 93 | |
94 | 94 | function showForm() { |
95 | 95 | global $wgOut, $wgUser; |
| 96 | + $skin = $wgUser->getSkin(); |
96 | 97 | |
97 | 98 | $wgOut->setPagetitle( wfMsg( "emailpage" ) ); |
98 | 99 | $wgOut->addWikiMsg( "emailpagetext" ); |
— | — | @@ -101,9 +102,11 @@ |
102 | 103 | } |
103 | 104 | |
104 | 105 | $emf = wfMsg( "emailfrom" ); |
105 | | - $sender = $wgUser->getName(); |
| 106 | + $senderLink = $skin->makeLinkObj( |
| 107 | + $wgUser->getUserPage(), htmlspecialchars( $wgUser->getName() ) ); |
106 | 108 | $emt = wfMsg( "emailto" ); |
107 | | - $rcpt = $this->_target->getName(); |
| 109 | + $recipientLink = $skin->makeLinkObj( |
| 110 | + $this->_target->getUserPage(), htmlspecialchars( $this->_target->getName() ) ); |
108 | 111 | $emr = wfMsg( "emailsubject" ); |
109 | 112 | $emm = wfMsg( "emailmessage" ); |
110 | 113 | $ems = wfMsg( "emailsend" ); |
— | — | @@ -119,10 +122,10 @@ |
120 | 123 | <form id=\"emailuser\" method=\"post\" action=\"{$action}\"> |
121 | 124 | <table border='0' id='mailheader'><tr> |
122 | 125 | <td align='right'>{$emf}:</td> |
123 | | -<td align='left'><strong>" . htmlspecialchars( $sender ) . "</strong></td> |
| 126 | +<td align='left'><strong>{$senderLink}</strong></td> |
124 | 127 | </tr><tr> |
125 | 128 | <td align='right'>{$emt}:</td> |
126 | | -<td align='left'><strong>" . htmlspecialchars( $rcpt ) . "</strong></td> |
| 129 | +<td align='left'><strong>{$recipientLink}</strong></td> |
127 | 130 | </tr><tr> |
128 | 131 | <td align='right'>{$emr}:</td> |
129 | 132 | <td align='left'> |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -59,6 +59,7 @@ |
60 | 60 | to allow functionality on not-quite-right usernames |
61 | 61 | * (bug 12575) Prevent duplicate patrol log entries from being created |
62 | 62 | * (bug 13174) __HIDDENCAT__ now applies only to category pages |
| 63 | +* (bug 13031) Add links to user pages in e-mail form |
63 | 64 | |
64 | 65 | |
65 | 66 | === API changes in 1.13 === |