Commit 1aa745ed authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Restore message on about me part of the edit profile page


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 84aa2056
......@@ -192,11 +192,20 @@ $profileform = pieform(array(
function get_desired_fields(&$allfields, $desiredfields, $section) {
global $USER;
$return = array();
$return["{$section}description"] = array(
'type' => 'html',
'labelhtml' => ($section == 'about') ? '<div id="profileicon"><a href="' . get_config('wwwroot') . 'artefact/file/profileicons.php"><img src="' . get_config('wwwroot') . 'thumb.php?type=profileicon&maxsize=100&id=' . intval($USER->get('id')) . '" alt=""></a></div>' : '',
'value' => get_string('infoisprivate', 'artefact.internal')
if ($section == 'about') {
$label = '<div id="profileicon"><a href="' . get_config('wwwroot') . 'artefact/file/profileicons.php"><img src="' . get_config('wwwroot') . 'thumb.php?type=profileicon&maxsize=100&id=' . intval($USER->get('id')) . '" alt=""></a></div>';
$descr = get_string('aboutdescription', 'artefact.internal');
}
else {
$label = '';
$descr = get_string('infoisprivate', 'artefact.internal');
}
$return = array(
"{$section}description" => array(
'type' => 'html',
'labelhtml' => $label,
'value' => $descr,
)
);
foreach ($desiredfields as $field) {
if (isset($allfields[$field])) {
......
......@@ -35,6 +35,7 @@ $string['myfiles'] = 'My Files';
$string['mandatory'] = 'Mandatory';
$string['public'] = 'Public';
$string['aboutdescription'] = 'Enter your real first and last name here. If you want to show a different name to people in the system, put that name in as your display name.';
$string['infoisprivate'] = 'This information is private until you include it in a view that is shared with others.';
$string['viewmyprofile'] = 'View my profile';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment