diff options
author | Bharat Mediratta <bharat@menalto.com> | 2010-02-18 16:20:59 -0800 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2010-02-18 16:20:59 -0800 |
commit | 7d98d4b7b9d16f32ed98c8eeb051be4149468dc6 (patch) | |
tree | 3f78cf189e0f27b6052b46bd710552eae8f42b90 /modules/gallery/controllers/user_profile.php | |
parent | 99c131e845b5bbfa22b93fa783b5ce671bc27e40 (diff) |
Revert "Fix for ticket #491: Make user and group names translatable."
This reverts commit 409121942590e12692eaf4e6e9e8b71bfe5ed60c.
Diffstat (limited to 'modules/gallery/controllers/user_profile.php')
-rw-r--r-- | modules/gallery/controllers/user_profile.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/gallery/controllers/user_profile.php b/modules/gallery/controllers/user_profile.php index 05373466..327d2ff1 100644 --- a/modules/gallery/controllers/user_profile.php +++ b/modules/gallery/controllers/user_profile.php @@ -23,8 +23,7 @@ class User_Profile_Controller extends Controller { $user = identity::lookup_user($id); $active_user = identity::active_user(); $is_current_active = $active_user->id == $id; - $can_edit = $is_current_active && !$active_user->guest; - $display_all = $active_user->admin || $can_edit; + $display_all = $active_user->admin || ($is_current_active && !$active_user->guest); $v = new Theme_View("page.html", "other", "profile"); $v->page_title = t("%name Profile", array("name" => $user->display_name())); @@ -33,7 +32,7 @@ class User_Profile_Controller extends Controller { // @todo modify user_home to supply a link to their album, $v->content->user = $user; $v->content->not_current = !$is_current_active; - $v->content->editable = identity::is_writable() && $can_edit; + $v->content->editable = identity::is_writable() && $display_all; $event_data = (object)array("user" => $user, "display_all" => $display_all, "content" => array()); module::event("show_user_profile", $event_data); |