summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod.php b/mod.php
index f95a6f71..17871d2e 100644
--- a/mod.php
+++ b/mod.php
@@ -1942,7 +1942,11 @@
do_array_part($config);
- $body = '<fieldset><legend>' . _('Configuration') . '</legend><table>' . $data . '</table></fieldset>';
+
+ $body = (hasPermission($config['mod']['edit_config']) ?
+ '<p style="text-align:center" class="unimportant">' .
+ '<a href="?/config/edit">[Edit using web editor]</a>' : '') .
+ '<fieldset><legend>' . _('Configuration') . '</legend><table>' . $data . '</table></fieldset>';
echo Element('page.html', Array(
'config'=>$config,