Skip to content
Browse files

MDL-34563 - change string firstname to lastname and add accesshide class

  • Loading branch information...
1 parent 8309268 commit dc5d4f435a0859dac22f2328e63d3dbfa0f0b8e7 @rwijaya rwijaya committed with nebgor
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/data/lib.php
View
2 mod/data/lib.php
@@ -1608,7 +1608,7 @@ function data_print_preference_form($data, $perpage, $search, $sort='', $order='
$patterns[] = '/##firstname##/';
$replacement[] = '<label class="accesshide" for="u_fn">'.get_string('authorfirstname', 'data').'</label><input type="text" size="16" id="u_fn" name="u_fn" value="'.$fn.'" />';
$patterns[] = '/##lastname##/';
- $replacement[] = '<label for="u_ln">'.get_string('authorfirstname', 'data').'</label><input type="text" size="16" id="u_ln" name="u_ln" value="'.$ln.'" />';
+ $replacement[] = '<label class="accesshide" for="u_ln">'.get_string('authorlastname', 'data').'</label><input type="text" size="16" id="u_ln" name="u_ln" value="'.$ln.'" />';
// actual replacement of the tags
$newtext = preg_replace($patterns, $replacement, $data->asearchtemplate);

0 comments on commit dc5d4f4

Please sign in to comment.
Something went wrong with that request. Please try again.