Permalink
Browse files

MDL-31604 Fix capabilities displayed without spaces causing text goin…

…g out of the screen
  • Loading branch information...
1 parent ea75a57 commit 12ba874956940b025a9be6e57cbbebe3c234f55e @stronk7 stronk7 committed with mouneyrac Feb 13, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 admin/webservice/service_users.php
  2. +1 −1 lib/adminlib.php
View
2 admin/webservice/service_users.php
@@ -98,7 +98,7 @@
//add the missing capabilities to the allowed users object to be displayed by renderer
foreach ($allowedusers as &$alloweduser) {
if (!is_siteadmin($alloweduser->id) and key_exists($alloweduser->id, $usersmissingcaps)) {
- $alloweduser->missingcapabilities = implode(',', $usersmissingcaps[$alloweduser->id]);
+ $alloweduser->missingcapabilities = implode(', ', $usersmissingcaps[$alloweduser->id]);
}
}
View
2 lib/adminlib.php
@@ -7575,7 +7575,7 @@ public function output_html($data, $query='') {
if (!is_siteadmin($token->userid) and
key_exists($token->userid, $usermissingcaps)) {
- $missingcapabilities = implode(',',
+ $missingcapabilities = implode(', ',
$usermissingcaps[$token->userid]);
if (!empty($missingcapabilities)) {
$useratag .= html_writer::tag('div',

0 comments on commit 12ba874

Please sign in to comment.