Index: view.php
===================================================================
RCS file: /cvsroot/moodle/moodle/user/view.php,v
retrieving revision 1.168.2.14
diff -u -r1.168.2.14 user/view.php
--- view.php 16 Jun 2008 02:13:30 -0000 1.168.2.14
+++ view.php 16 Jun 2008 08:07:26 -0000
@@ -221,19 +221,13 @@
echo '
';
- if (($user->city or $user->country) and (!isset($hiddenfields['city']) or !isset($hiddenfields['country']))) {
- $location = '';
- if ($user->city && !isset($hiddenfields['city'])) {
- $location .= $user->city;
- }
+ if (! isset($hiddenfields['country']) && $user->country) {
$countries = get_list_of_countries();
- if (!empty($countries[$user->country]) && !isset($hiddenfields['country'])) {
- if ($user->city && !isset($hiddenfields['country'])) {
- $location .= ', ';
- }
- $location .= $countries[$user->country];
- }
- print_row(get_string("city").":", $location);
+ print_row(get_string('country') . ':', $countries[$user->country]);
+ }
+
+ if (! isset($hiddenfields['city']) && $user->city) {
+ print_row(get_string('city') . ':', $user->city);
}
if (has_capability('moodle/user:viewhiddendetails', $coursecontext)) {