Commit 29417a6f authored by Evan Goldenberg's avatar Evan Goldenberg
Browse files

fix an exception that was getting a language string from the wrong place


Signed-off-by: default avatarEvan Goldenberg <evang@catalyst.net.nz>
(cherry picked from commit 91ca5e74d354e48c64bec8928bd41fb660dcf6eb)
parent 16b30537
......@@ -63,7 +63,7 @@ $userobj->find_by_id($userid);
$view = $userobj->get_profile_view();
# access will either be logged in (always) or public as well
if (!$view || !can_view_view($view->get('id'))) {
throw new AccessDeniedException(get_string('youcannotviewthisusersprofile'));
throw new AccessDeniedException(get_string('youcannotviewthisusersprofile', 'error'));
}
// Set up theme
......
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