mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-19 01:24:05 +01:00
"edit using web editor" link on ?/config
This commit is contained in:
parent
3893848341
commit
2f144e9d92
6
mod.php
6
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user