$section = $perm;
}
+ if (defined('PERMISSION_' . strtoupper($perm))) {
+ $permname = constant('PERMISSION_' . strtoupper($perm));
+ } else {
+ $permname = $perm;
+ }
+
if (!serendipity_checkPermission($perm)) {
echo "<tr>\n";
- echo "<td>$indent" . htmlspecialchars($perm) . "</td>\n";
+ echo "<td>$indent" . htmlspecialchars($permname) . "</td>\n";
echo '<td>' . $indentB . ' ' . (!empty($selected) ? YES : NO) . '</td>' . "\n";
echo "</tr>\n";
} else {
echo "<tr>\n";
- echo "<td>$indent<label for=\"" . htmlspecialchars($perm) . "\">" . htmlspecialchars($perm) . "</label></td>\n";
+ echo "<td>$indent<label for=\"" . htmlspecialchars($perm) . "\">" . htmlspecialchars($permname) . "</label></td>\n";
echo '<td>' . $indentB . '<input id="' . htmlspecialchars($perm) . '" type="checkbox" name="serendipity[' . htmlspecialchars($perm) . ']" value="true" ' . $selected . ' /></td>' . "\n";
echo "</tr>\n";
}