diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-02-06 17:38:18 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-02-06 17:38:18 +1100 |
| commit | 147a4e29ded21beeea80b3b4155af9d41f743057 (patch) | |
| tree | 446be6983ae7b0ad2be909a052e213f480e6400e | |
| parent | 77cb944b0837d41dbb84773550c864bd7fab7fcc (diff) | |
"edit using web editor" link on ?/config
| -rw-r--r-- | mod.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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, |
