From e63d68bd411e5b2b73ee3f17190df343e7bc34d7 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 | 8 ++++---- Theme/Backend/helper-list.tpl.php | 20 ++++++++++---------- Theme/Backend/helper-single.tpl.php | 6 +++--- info.json | 2 +- tests/depreciation/view.tpl.php | 2 +- 5 files changed, 19 insertions(+), 19 deletions(-) diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index db121e1..c2a3262 100755 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -5,7 +5,7 @@ "type": 2, "subtype": 1, "name": "Helper", - "uri": "{/prefix}helper/list", + "uri": "{/lang}/{/app}/helper/list", "target": "self", "icon": null, "order": 60, @@ -19,7 +19,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "{/prefix}helper/list", + "uri": "{/lang}/{/app}/helper/list", "target": "self", "icon": null, "order": 1, @@ -34,7 +34,7 @@ "type": 3, "subtype": 5, "name": "CreateReport", - "uri": "{/prefix}helper/report/create?{?}", + "uri": "{/lang}/{/app}/helper/report/create?{?}", "target": "self", "icon": null, "order": 5, @@ -49,7 +49,7 @@ "type": 3, "subtype": 5, "name": "CreateTemplate", - "uri": "{/prefix}helper/template/create?{?}", + "uri": "{/lang}/{/app}/helper/template/create?{?}", "target": "self", "icon": null, "order": 10, diff --git a/Theme/Backend/helper-list.tpl.php b/Theme/Backend/helper-list.tpl.php index 38fa967..17fc5f4 100755 --- a/Theme/Backend/helper-list.tpl.php +++ b/Theme/Backend/helper-list.tpl.php @@ -29,16 +29,16 @@ $accountDir = $account->getId() . ' ' . $account->login; $collections = $this->getData('collections'); $mediaPath = \urldecode($this->getData('path') ?? '/'); -$previous = empty($templates) ? 'helper/list' : 'helper/list?{?}&id=' . \reset($templates)->getId() . '&ptype=p'; -$next = empty($templates) ? 'helper/list' : 'helper/list?{?}&id=' . \end($templates)->getId() . '&ptype=n'; +$previous = empty($templates) ? '{/lang}/{/app}/helper/list' : '{/lang}/{/app}/helper/list?{?}&id=' . \reset($templates)->getId() . '&ptype=p'; +$next = empty($templates) ? '{/lang}/{/app}/helper/list' : 'helper/list?{?}&id=' . \end($templates)->getId() . '&ptype=n'; echo $this->getData('nav')->render(); ?>
@@ -116,7 +116,7 @@ echo $this->getData('nav')->render(); ?>
- +
@@ -146,7 +146,7 @@ echo $this->getData('nav')->render(); ?> printHtml($template->name); ?> getHtml('Creator'); ?> - printHtml($template->createdBy->name1); ?> + printHtml($template->createdBy->name1); ?> getHtml('Created'); ?> createdAt->format('Y-m-d'); ?> diff --git a/info.json b/info.json index aec97a8..f93732a 100755 --- a/info.json +++ b/info.json @@ -12,7 +12,7 @@ }, "creator": { "name": "Karaka", - "website": "www.spl1nes.com" + "website": "jingga.app" }, "description": "The helper module supports creating static and dynamic reportings.", "directory": "Helper", diff --git a/tests/depreciation/view.tpl.php b/tests/depreciation/view.tpl.php index b304487..b563048 100755 --- a/tests/depreciation/view.tpl.php +++ b/tests/depreciation/view.tpl.php @@ -38,7 +38,7 @@ $duration = (int) ($this->request->getData('duration') ?? 10); - +