From 4ec07af43481b371e4bfc7abc6f2614785ccf4b1 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/audit-list.tpl.php | 4 ++-- Theme/Backend/audit-single.tpl.php | 4 ++-- info.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index bdaad99..da2eae6 100755 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -5,7 +5,7 @@ "type": 2, "subtype": 1, "name": "Auditor", - "uri": "{/prefix}admin/audit/list", + "uri": "{/lang}/{/app}/admin/audit/list", "target": "self", "icon": null, "order": 75, @@ -19,7 +19,7 @@ "type": 3, "subtype": 1, "name": "Audits", - "uri": "{/prefix}admin/audit/list", + "uri": "{/lang}/{/app}/admin/audit/list", "target": "self", "icon": null, "order": 1, diff --git a/Theme/Backend/audit-list.tpl.php b/Theme/Backend/audit-list.tpl.php index 5c3a69a..08b0590 100755 --- a/Theme/Backend/audit-list.tpl.php +++ b/Theme/Backend/audit-list.tpl.php @@ -104,7 +104,7 @@ echo $this->getData('nav')->render(); ?> $audit) : ++$count; - $url = UriFactory::build('admin/audit/single?id=' . $audit->getId()); ?> + $url = UriFactory::build('{/lang}/{/app}/admin/audit/single?id=' . $audit->getId()); ?> getId(); ?> printHtml($audit->getModule()); ?> @@ -115,7 +115,7 @@ echo $this->getData('nav')->render(); ?> getType(); ?> getTrigger(); ?> - printHtml( + printHtml( $this->renderUserName('%3$s %2$s %1$s', [$audit->createdBy->name1, $audit->createdBy->name2, $audit->createdBy->name3, $audit->createdBy->login]) ); ?> printHtml($audit->getRef()); ?> diff --git a/Theme/Backend/audit-single.tpl.php b/Theme/Backend/audit-single.tpl.php index dbd4f9e..33d2c4b 100755 --- a/Theme/Backend/audit-single.tpl.php +++ b/Theme/Backend/audit-single.tpl.php @@ -53,7 +53,7 @@ echo $this->getData('nav')->render(); getType(); ?> getHtml('By'); ?> - createdBy->name1; ?> createdBy->name2; ?> + createdBy->name1; ?> createdBy->name2; ?> getHtml('Ref'); ?> printHtml($audit->getRef()); ?> @@ -62,7 +62,7 @@ echo $this->getData('nav')->render(); getDateTime($audit->createdAt, 'very_long'); ?> getHtml('Module'); ?> - getModule(); ?> + getModule(); ?> getHtml('IP'); ?> getIp()); ?> diff --git a/info.json b/info.json index 25a11a5..a493660 100755 --- a/info.json +++ b/info.json @@ -12,7 +12,7 @@ }, "creator": { "name": "Karaka", - "website": "www.spl1nes.com" + "website": "jingga.app" }, "description": "The administration module.", "directory": "Auditor",