From 147a4e29ded21beeea80b3b4155af9d41f743057 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Mon, 6 Feb 2012 17:38:18 +1100 Subject: [PATCH] "edit using web editor" link on ?/config --- mod.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 = '
' . _('Configuration') . '' . $data . '
'; + + $body = (hasPermission($config['mod']['edit_config']) ? + '

' . + '[Edit using web editor]' : '') . + '

' . _('Configuration') . '' . $data . '
'; echo Element('page.html', Array( 'config'=>$config,