From 6e2c3b888b4e8d45e25f2722bbe05a7f3934718a Mon Sep 17 00:00:00 2001 From: garvinhicking Date: Fri, 22 Jul 2005 08:56:24 +0000 Subject: [PATCH] Use localized groupnames --- include/admin/groups.inc.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/include/admin/groups.inc.php b/include/admin/groups.inc.php index 4b88110..be1951a 100644 --- a/include/admin/groups.inc.php +++ b/include/admin/groups.inc.php @@ -153,14 +153,20 @@ foreach($allusers AS $user) { $section = $perm; } + if (defined('PERMISSION_' . strtoupper($perm))) { + $permname = constant('PERMISSION_' . strtoupper($perm)); + } else { + $permname = $perm; + } + if (!serendipity_checkPermission($perm)) { echo "\n"; - echo "$indent" . htmlspecialchars($perm) . "\n"; + echo "$indent" . htmlspecialchars($permname) . "\n"; echo '' . $indentB . ' ' . (!empty($selected) ? YES : NO) . '' . "\n"; echo "\n"; } else { echo "\n"; - echo "$indent\n"; + echo "$indent\n"; echo '' . $indentB . '' . "\n"; echo "\n"; } -- 2.39.5