"edit using web editor" link on ?/config

This commit is contained in:
Michael Save 2012-02-06 17:38:18 +11:00
parent 77cb944b08
commit 147a4e29de

View File

@ -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,