From 813d6b73f7256ff8f67474bffcecfc28c41d2e6e 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 | 4 ++-- Theme/Backend/contract-list.tpl.php | 8 ++++---- info.json | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 211f2df..14aa3ed 100755 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -5,7 +5,7 @@ "type": 2, "subtype": 1, "name": "Contract", - "uri": "{/prefix}contract/list?{?}", + "uri": "{/lang}/{/app}/contract/list?{?}", "target": "self", "icon": null, "order": 45, @@ -19,7 +19,7 @@ "type": 3, "subtype": 1, "name": "Contracts", - "uri": "{/prefix}contract/list?{?}", + "uri": "{/lang}/{/app}/contract/list?{?}", "target": "self", "icon": null, "order": 1, diff --git a/Theme/Backend/contract-list.tpl.php b/Theme/Backend/contract-list.tpl.php index 74672f0..170deff 100755 --- a/Theme/Backend/contract-list.tpl.php +++ b/Theme/Backend/contract-list.tpl.php @@ -20,8 +20,8 @@ use phpOMS\Uri\UriFactory; */ $contracts = $this->getData('contracts') ?? []; -$previous = empty($contracts) ? 'contract/list' : 'contract/list?{?}&id=' . \reset($contracts)->getId() . '&ptype=p'; -$next = empty($contracts) ? 'contract/list' : 'contract/list?{?}&id=' . \end($contracts)->getId() . '&ptype=n'; +$previous = empty($contracts) ? '{/lang}/{/app}/contract/list' : '{/lang}/{/app}/contract/list?{?}&id=' . \reset($contracts)->getId() . '&ptype=p'; +$next = empty($contracts) ? '{/lang}/{/app}/contract/list' : '{/lang}/{/app}/contract/list?{?}&id=' . \end($contracts)->getId() . '&ptype=n'; $now = new \DateTime('now'); @@ -73,7 +73,7 @@ echo $this->getData('nav')->render(); ?> $value) : - $url = UriFactory::build('contract/single?{?}&id=' . $value->getId()); + $url = UriFactory::build('{/lang}/{/app}/contract/single?{?}&id=' . $value->getId()); $type = 'ok'; if (($value->end->getTimestamp() < $now->getTimestamp() && $value->end->getTimestamp() + 7776000 > $now->getTimestamp()) @@ -88,7 +88,7 @@ echo $this->getData('nav')->render(); ?> ?> printHtml($value->title); ?> - printHtml($value->account->name1); ?> printHtml($value->account->name2); ?> + printHtml($value->account->name1); ?> printHtml($value->account->name2); ?> end !== null ? $value->end->format('Y-m-d') : ''; ?> diff --git a/info.json b/info.json index 432df04..c4ce549 100755 --- a/info.json +++ b/info.json @@ -12,7 +12,7 @@ }, "creator": { "name": "Karaka", - "website": "www.spl1nes.com" + "website": "jingga.app" }, "description": "ContractManagement module.", "directory": "ContractManagement",