Page MenuHomePhabricator

usercreate.patch

Authored By
bzimport
Nov 21 2014, 10:47 PM
Size
979 B
Referenced Files
None
Subscribers
None

usercreate.patch

Index: includes/templates/Userlogin.php
===================================================================
--- includes/templates/Userlogin.php (revision 55590)
+++ includes/templates/Userlogin.php (working copy)
@@ -123,12 +123,13 @@
* @ingroup Templates
*/
class UsercreateTemplate extends QuickTemplate {
- function addInputItem( $name, $value, $type, $msg ) {
+ function addInputItem( $name, $value, $type, $msg, $helptext = false ) {
$this->data['extraInput'][] = array(
'name' => $name,
'value' => $value,
'type' => $type,
'msg' => $msg,
+ 'helptext' => $helptext,
);
}
@@ -285,7 +286,12 @@
<label for="<?php echo htmlspecialchars( $inputItem['name'] ); ?>"><?php
$this->msgHtml( $inputItem['msg'] ) ?></label><?php
}
+ if( $inputItem['helptext'] !== false ) {
?>
+ <div class="prefsectiontip">
+ <?php $this->msgWiki( $inputItem['helptext'] ); ?>
+ </div>
+ <?php } ?>
</td>
</tr>
<?php

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5504
Default Alt Text
usercreate.patch (979 B)

Event Timeline