mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-06 13:25:46 +01:00
Fixed config save with the new config url
This commit is contained in:
@@ -671,6 +671,9 @@ class AdminPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
$type = $e['type'] ?? null;
|
$type = $e['type'] ?? null;
|
||||||
switch ($type) {
|
switch ($type) {
|
||||||
|
case 'config':
|
||||||
|
$e['type'] = $this->admin->authorize(['admin.configuration_system','admin.super']) ? 'config/system' : 'config/site';
|
||||||
|
break;
|
||||||
case 'tools/scheduler':
|
case 'tools/scheduler':
|
||||||
$e['type'] = 'config/scheduler';
|
$e['type'] = 'config/scheduler';
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
{% set route = latest.rawRoute %}
|
{% set route = latest.rawRoute %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="triple page-title">
|
<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>
|
<td class="triple page-route">{{ route }}</td><td>{{ latest.modified|adminNicetime }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
Reference in New Issue
Block a user