Fixed config save with the new config url

This commit is contained in:
Matias Griese
2019-08-28 08:59:58 +03:00
parent 58f8871450
commit ff3af2c112
2 changed files with 5 additions and 2 deletions

View File

@@ -671,10 +671,13 @@ class AdminPlugin extends Plugin
{
$type = $e['type'] ?? null;
switch ($type) {
case 'config':
$e['type'] = $this->admin->authorize(['admin.configuration_system','admin.super']) ? 'config/system' : 'config/site';
break;
case 'tools/scheduler':
$e['type'] = 'config/scheduler';
break;
case 'tools':
case 'tools':
case 'tools/backups':
$e['type'] = 'config/backups';
break;

View File

@@ -9,7 +9,7 @@
{% set route = latest.rawRoute %}
<tr>
<td class="triple page-title">
<a href="{{ base_url }}/pages/{{ route|trim('/') }}"><i class="fa fa-fw fa-file-text-o"></i> {{ latest.title|e }}</a></td>
<a href="{{ base_url }}/pages/{{ route|trim('/') }}"><i class="fa fa-fw fa-file-text-o"></i> {{ latest.title }}</a></td>
<td class="triple page-route">{{ route }}</td><td>{{ latest.modified|adminNicetime }}</td>
</tr>
{% endfor %}