From d08141c6f2fa1761646fa29e1adaf25f354df253 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 | 30 ++++++++++----------- Theme/Backend/costcenter-list.tpl.php | 6 ++--- Theme/Backend/costobject-list.tpl.php | 6 ++--- Theme/Backend/gl-list.tpl.php | 2 +- Theme/Backend/journal-list.tpl.php | 2 +- Theme/Backend/stack-archive-list.tpl.php | 2 +- Theme/Backend/stack-list.tpl.php | 2 +- Theme/Backend/stack-predefined-list.tpl.php | 2 +- info.json | 2 +- 9 files changed, 27 insertions(+), 27 deletions(-) diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 8e4ac27..59322f9 100755 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -19,7 +19,7 @@ "type": 2, "subtype": 1, "name": "CostCenters", - "uri": "{/prefix}accounting/costcenter/list", + "uri": "{/lang}/{/app}/accounting/costcenter/list", "target": "self", "icon": null, "order": 5, @@ -33,7 +33,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "{/prefix}accounting/costcenter/list", + "uri": "{/lang}/{/app}/accounting/costcenter/list", "target": "self", "icon": null, "order": 1, @@ -48,7 +48,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "{/prefix}accounting/costcenter/create?{?}", + "uri": "{/lang}/{/app}/accounting/costcenter/create?{?}", "target": "self", "icon": null, "order": 5, @@ -65,7 +65,7 @@ "type": 2, "subtype": 1, "name": "CostObjects", - "uri": "{/prefix}accounting/costobject/list", + "uri": "{/lang}/{/app}/accounting/costobject/list", "target": "self", "icon": null, "order": 5, @@ -79,7 +79,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "{/prefix}accounting/costobject/list", + "uri": "{/lang}/{/app}/accounting/costobject/list", "target": "self", "icon": null, "order": 1, @@ -94,7 +94,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "{/prefix}accounting/costobject/create?{?}", + "uri": "{/lang}/{/app}/accounting/costobject/create?{?}", "target": "self", "icon": null, "order": 5, @@ -111,7 +111,7 @@ "type": 2, "subtype": 1, "name": "Accounts", - "uri": "{/prefix}accounting/gl/list", + "uri": "{/lang}/{/app}/accounting/gl/list", "target": "self", "icon": null, "order": 5, @@ -125,7 +125,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "{/prefix}accounting/gl/list", + "uri": "{/lang}/{/app}/accounting/gl/list", "target": "self", "icon": null, "order": 1, @@ -140,7 +140,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "{/prefix}accounting/gl/create?{?}", + "uri": "{/lang}/{/app}/accounting/gl/create?{?}", "target": "self", "icon": null, "order": 5, @@ -157,7 +157,7 @@ "type": 2, "subtype": 1, "name": "BatchPostings", - "uri": "{/prefix}accounting/stack/list", + "uri": "{/lang}/{/app}/accounting/stack/list", "target": "self", "icon": null, "order": 10, @@ -171,7 +171,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "{/prefix}accounting/stack/list", + "uri": "{/lang}/{/app}/accounting/stack/list", "target": "self", "icon": null, "order": 5, @@ -186,7 +186,7 @@ "type": 3, "subtype": 1, "name": "Archive", - "uri": "{/prefix}accounting/stack/archive/list", + "uri": "{/lang}/{/app}/accounting/stack/archive/list", "target": "self", "icon": null, "order": 10, @@ -201,7 +201,7 @@ "type": 3, "subtype": 1, "name": "Predefined", - "uri": "{/prefix}accounting/stack/predefined/list", + "uri": "{/lang}/{/app}/accounting/stack/predefined/list", "target": "self", "icon": null, "order": 10, @@ -216,7 +216,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "{/prefix}accounting/stack/create?{?}", + "uri": "{/lang}/{/app}/accounting/stack/create?{?}", "target": "self", "icon": null, "order": 15, @@ -233,7 +233,7 @@ "type": 2, "subtype": 1, "name": "Entries", - "uri": "{/prefix}accounting/entries/dashboard?{?}", + "uri": "{/lang}/{/app}/accounting/entries/dashboard?{?}", "target": "self", "icon": null, "order": 1, diff --git a/Theme/Backend/costcenter-list.tpl.php b/Theme/Backend/costcenter-list.tpl.php index 7c75f73..e307fa3 100755 --- a/Theme/Backend/costcenter-list.tpl.php +++ b/Theme/Backend/costcenter-list.tpl.php @@ -20,8 +20,8 @@ use phpOMS\Uri\UriFactory; */ $costcenter = $this->getData('costcenter'); -$previous = empty($costcenter) ? 'tag/list' : 'tag/list?{?}&id=' . \reset($costcenter)->getId() . '&ptype=p'; -$next = empty($costcenter) ? 'tag/list' : 'tag/list?{?}&id=' . \end($costcenter)->getId() . '&ptype=n'; +$previous = empty($costcenter) ? '{/lang}/{/app}/tag/list' : '{/lang}/{/app}/tag/list?{?}&id=' . \reset($costcenter)->getId() . '&ptype=p'; +$next = empty($costcenter) ? '{/lang}/{/app}/tag/list' : '{/lang}/{/app}/tag/list?{?}&id=' . \end($costcenter)->getId() . '&ptype=n'; echo $this->getData('nav')->render(); ?>
@@ -35,7 +35,7 @@ echo $this->getData('nav')->render(); ?> getHtml('Name'); ?> $value) : ++$count; - $url = UriFactory::build('tag/single?{?}&id=' . $value->getId()); ?> + $url = UriFactory::build('{/lang}/{/app}/tag/single?{?}&id=' . $value->getId()); ?> printHtml($value->code); ?> printHtml($value->l11n->name); ?> diff --git a/Theme/Backend/costobject-list.tpl.php b/Theme/Backend/costobject-list.tpl.php index 1b9095d..a51b43c 100755 --- a/Theme/Backend/costobject-list.tpl.php +++ b/Theme/Backend/costobject-list.tpl.php @@ -20,8 +20,8 @@ use phpOMS\Uri\UriFactory; */ $costobject = $this->getData('costobject'); -$previous = empty($costobject) ? 'tag/list' : 'tag/list?{?}&id=' . \reset($costobject)->getId() . '&ptype=p'; -$next = empty($costobject) ? 'tag/list' : 'tag/list?{?}&id=' . \end($costobject)->getId() . '&ptype=n'; +$previous = empty($costobject) ? '{/lang}/{/app}/tag/list' : '{/lang}/{/app}/tag/list?{?}&id=' . \reset($costobject)->getId() . '&ptype=p'; +$next = empty($costobject) ? '{/lang}/{/app}/tag/list' : '{/lang}/{/app}/tag/list?{?}&id=' . \end($costobject)->getId() . '&ptype=n'; echo $this->getData('nav')->render(); ?>
@@ -35,7 +35,7 @@ echo $this->getData('nav')->render(); ?> getHtml('Name'); ?> $value) : ++$count; - $url = UriFactory::build('tag/single?{?}&id=' . $value->getId()); ?> + $url = UriFactory::build('{/lang}/{/app}/tag/single?{?}&id=' . $value->getId()); ?> printHtml($value->code); ?> printHtml($value->l11n->name); ?> diff --git a/Theme/Backend/gl-list.tpl.php b/Theme/Backend/gl-list.tpl.php index a20adad..11db31f 100755 --- a/Theme/Backend/gl-list.tpl.php +++ b/Theme/Backend/gl-list.tpl.php @@ -36,7 +36,7 @@ echo $this->getData('nav')->render(); ?> getHtml('Name'); ?> $value) : ++$c; - $url = \phpOMS\Uri\UriFactory::build('admin/group/settings?{?}&id=' . $value->getId()); ?> + $url = \phpOMS\Uri\UriFactory::build('{/lang}/{/app}/admin/group/settings?{?}&id=' . $value->getId()); ?> getId(); ?> printHtml($value->name); ?> diff --git a/Theme/Backend/journal-list.tpl.php b/Theme/Backend/journal-list.tpl.php index 1f6af7e..858f267 100755 --- a/Theme/Backend/journal-list.tpl.php +++ b/Theme/Backend/journal-list.tpl.php @@ -34,7 +34,7 @@ echo $this->getData('nav')->render(); ?> getHtml('Name'); ?> $value) : ++$c; - $url = \phpOMS\Uri\UriFactory::build('admin/group/settings?{?}&id=' . $value->getId()); ?> + $url = \phpOMS\Uri\UriFactory::build('{/lang}/{/app}/admin/group/settings?{?}&id=' . $value->getId()); ?> getId(); ?> printHtml($value->name); ?> diff --git a/Theme/Backend/stack-archive-list.tpl.php b/Theme/Backend/stack-archive-list.tpl.php index b2a2fcd..97a3ddb 100755 --- a/Theme/Backend/stack-archive-list.tpl.php +++ b/Theme/Backend/stack-archive-list.tpl.php @@ -36,7 +36,7 @@ echo $this->getData('nav')->render(); ?> getHtml('Created'); ?> $value) : ++$c; - $url = \phpOMS\Uri\UriFactory::build('admin/group/settings?{?}&id=' . $value->getId()); ?> + $url = \phpOMS\Uri\UriFactory::build('{/lang}/{/app}/admin/group/settings?{?}&id=' . $value->getId()); ?> getId(); ?> printHtml($value->name); ?> diff --git a/Theme/Backend/stack-list.tpl.php b/Theme/Backend/stack-list.tpl.php index d89ac7a..e3e7d6a 100755 --- a/Theme/Backend/stack-list.tpl.php +++ b/Theme/Backend/stack-list.tpl.php @@ -38,7 +38,7 @@ echo $this->getData('nav')->render(); ?> getHtml('Created'); ?> $value) : ++$c; - $url = \phpOMS\Uri\UriFactory::build('admin/group/settings?{?}&id=' . $value->getId()); ?> + $url = \phpOMS\Uri\UriFactory::build('{/lang}/{/app}/admin/group/settings?{?}&id=' . $value->getId()); ?> getId(); ?> printHtml($value->name); ?> diff --git a/Theme/Backend/stack-predefined-list.tpl.php b/Theme/Backend/stack-predefined-list.tpl.php index 2137028..b482880 100755 --- a/Theme/Backend/stack-predefined-list.tpl.php +++ b/Theme/Backend/stack-predefined-list.tpl.php @@ -37,7 +37,7 @@ echo $this->getData('nav')->render(); ?> getHtml('Created'); ?> $value) : ++$c; - $url = \phpOMS\Uri\UriFactory::build('admin/group/settings?{?}&id=' . $value->getId()); ?> + $url = \phpOMS\Uri\UriFactory::build('{/lang}/{/app}/admin/group/settings?{?}&id=' . $value->getId()); ?> getId(); ?> printHtml($value->name); ?> diff --git a/info.json b/info.json index 658ffcb..85ede94 100755 --- a/info.json +++ b/info.json @@ -12,7 +12,7 @@ }, "creator": { "name": "Karaka", - "website": "www.spl1nes.com" + "website": "jingga.app" }, "description": "Accounting module.", "directory": "Accounting",