aboutsummaryrefslogtreecommitdiff
path: root/views/default/output
diff options
context:
space:
mode:
authorcash <cash.costello@gmail.com>2012-01-01 19:29:17 -0500
committercash <cash.costello@gmail.com>2012-01-01 19:29:17 -0500
commite04c580e7064c24104f29a8aed295381c351b4a4 (patch)
tree7f559e2ed2b0aa461f0d1dd84030bc5a6d5ec246 /views/default/output
parentce691dd8c560abc48aaf578928d13dea6ef31565 (diff)
downloadelgg-e04c580e7064c24104f29a8aed295381c351b4a4.tar.gz
elgg-e04c580e7064c24104f29a8aed295381c351b4a4.tar.bz2
Fixes #3939 if user does not have permissions to see the name of the access collection, it is shown as "Limited"
Diffstat (limited to 'views/default/output')
-rw-r--r--views/default/output/access.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/views/default/output/access.php b/views/default/output/access.php
index 811948323..91c5c721e 100644
--- a/views/default/output/access.php
+++ b/views/default/output/access.php
@@ -11,6 +11,7 @@ if (isset($vars['entity']) && elgg_instanceof($vars['entity'])) {
$access_id = $vars['entity']->access_id;
$access_class = 'elgg-access';
$access_id_string = get_readable_access_level($access_id);
+ $access_id_string = htmlentities($access_id_string, ENT_QUOTES, 'UTF-8');
// if within a group or shared access collection display group name and open/closed membership status
// @todo have a better way to do this instead of checking against subtype / class.
@@ -35,5 +36,7 @@ if (isset($vars['entity']) && elgg_instanceof($vars['entity'])) {
$access_class .= ' elgg-access-private';
}
- echo "<span class=\"$access_class\">$access_id_string</span>";
+ $help_text = elgg_echo('access:help');
+
+ echo "<span title=\"$help_text\" class=\"$access_class\">$access_id_string</span>";
}