Browse Source

"edit using web editor" link on ?/config

pull/40/head
Michael Save 12 years ago
parent
commit
147a4e29de
  1. 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…
Cancel
Save