"edit using web editor" link on ?/config
This commit is contained in:
parent
77cb944b08
commit
147a4e29de
6
mod.php
6
mod.php
@ -1942,7 +1942,11 @@
|
|||||||
|
|
||||||
do_array_part($config);
|
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(
|
echo Element('page.html', Array(
|
||||||
'config'=>$config,
|
'config'=>$config,
|
||||||
|
Loading…
Reference in New Issue
Block a user