From 9b22829650adc98abf36e553bd4670ec76ee1773 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 10 Dec 2022 22:17:54 +0100 Subject: [PATCH] fix urls --- Admin/Install/Navigation.install.json | 6 +++--- Theme/Backend/editor-list.tpl.php | 20 ++++++++++---------- Theme/Backend/editor-single.tpl.php | 6 +++--- info.json | 2 +- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index fc07128..76c0fd6 100755 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -5,7 +5,7 @@ "type": 2, "subtype": 1, "name": "Editor", - "uri": "{/prefix}editor/list", + "uri": "{/lang}/{/app}/editor/list", "target": "self", "icon": null, "order": 75, @@ -19,7 +19,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "{/prefix}editor/list", + "uri": "{/lang}/{/app}/editor/list", "target": "self", "icon": null, "order": 1, @@ -34,7 +34,7 @@ "type": 3, "subtype": 5, "name": "Create", - "uri": "{/prefix}editor/create?{?}", + "uri": "{/lang}/{/app}/editor/create?{?}", "target": "self", "icon": null, "order": 15, diff --git a/Theme/Backend/editor-list.tpl.php b/Theme/Backend/editor-list.tpl.php index bafd5ca..b868da3 100755 --- a/Theme/Backend/editor-list.tpl.php +++ b/Theme/Backend/editor-list.tpl.php @@ -27,8 +27,8 @@ $account = $this->getData('account'); $accountDir = $account->getId() . ' ' . $account->login; -$previous = empty($docs) ? 'editor/list' : 'editor/list?{?}&id=' . \reset($docs)->getId() . '&ptype=p'; -$next = empty($docs) ? 'editor/list' : 'editor/list?{?}&id=' . \end($docs)->getId() . '&ptype=n'; +$previous = empty($docs) ? '{/lang}/{/app}/editor/list' : '{/lang}/{/app}/editor/list?{?}&id=' . \reset($docs)->getId() . '&ptype=p'; +$next = empty($docs) ? '{/lang}/{/app}/editor/list' : '{/lang}/{/app}/editor/list?{?}&id=' . \end($docs)->getId() . '&ptype=n'; $docs = $this->getData('docs'); @@ -37,8 +37,8 @@ echo $this->getData('nav')->render(); ?>
@@ -56,8 +56,8 @@ echo $this->getData('nav')->render(); ?>