summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/gallery_event.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2010-01-27 19:20:38 -0800
committerBharat Mediratta <bharat@menalto.com>2010-01-27 19:20:38 -0800
commit4ca91bf6188a1a034ef7770308f42e7c788a1936 (patch)
tree63f89a53ca85375aef63924cafefb04858fa238a /modules/gallery/helpers/gallery_event.php
parentf9062101479c809b0957903b7116aaed86f24d76 (diff)
parentdf5da84ebb6e35b4e56b6344284d985a7c11ad68 (diff)
Merge branch 'master' of git@github.com:gallery/gallery3 into bharat_dev
Conflicts: modules/gallery/tests/Access_Helper_Test.php
Diffstat (limited to 'modules/gallery/helpers/gallery_event.php')
-rw-r--r--modules/gallery/helpers/gallery_event.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/modules/gallery/helpers/gallery_event.php b/modules/gallery/helpers/gallery_event.php
index 1df3a507..70c6de4a 100644
--- a/modules/gallery/helpers/gallery_event.php
+++ b/modules/gallery/helpers/gallery_event.php
@@ -399,18 +399,22 @@ class gallery_event_Core {
static function show_user_profile($data) {
$v = new View("user_profile_info.html");
- $fields = array("name" => t("Name"), "locale" => t("Locale"), "email" => t("Email"),
- "full_name" => t("Full name"), "url" => "Web site");
+ $fields = array("name" => t("Name"), "locale" => t("Language Preference"),
+ "email" => t("Email"), "full_name" => t("Full name"), "url" => "Web site");
if (!$data->display_all) {
$fields = array("name" => t("Name"), "full_name" => t("Full name"), "url" => "Web site");
}
$v->fields = array();
foreach ($fields as $field => $label) {
if (!empty($data->user->$field)) {
- $v->fields[(string)$label->for_html()] = $data->user->$field;
+ $value = $data->user->$field;
+ if ($field == "locale") {
+ $value = locales::display_name($value);
+ }
+ $v->fields[(string) $label] = html::clean($value);
}
}
- $data->content[] = (object)array("title" => t("User information"), "view" => $v);
+ $data->content[] = (object) array("title" => t("User information"), "view" => $v);
}
}