From 357f787bbc15efc7fc1d47416d66d6a96ab17525 Mon Sep 17 00:00:00 2001 From: poltawski Date: Sat, 29 Dec 2007 15:38:14 +0000 Subject: [PATCH] MDL-7242 eliminate last use of location to refer to city in profile where it causes problems for translators merged from MOODLE_19_STABLE --- lib/weblib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index b55943e0906..ce20d1fffa3 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4377,7 +4377,7 @@ function print_user($user, $course, $messageselect=false, $return=false) { if (empty($string)) { // Cache all the strings for the rest of the page $string->email = get_string('email'); - $string->location = get_string('location'); + $string->city = get_string('city'); $string->lastaccess = get_string('lastaccess'); $string->activity = get_string('activity'); $string->unenrol = get_string('unenrol'); @@ -4424,7 +4424,7 @@ has_capability('moodle/course:viewhiddenuserfields', $context)) { $output .= $string->email .': '. $user->email .'
'; } if (($user->city or $user->country) and (!isset($hiddenfields['city']) or !isset($hiddenfields['country']))) { - $output .= $string->location .': '; + $output .= $string->city .': '; if ($user->city && !isset($hiddenfields['city'])) { $output .= $user->city; }