From efe4ff433007fe8daafe9dd63ce0ca5376cfeb83 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 11 Feb 2019 11:38:15 +0100 Subject: [PATCH] Fix absolute path to relative paths --- Admin/Install/Navigation.install.json | 10 +++++----- Theme/Backend/department-list.tpl.php | 2 +- Theme/Backend/planning-dashboard.tpl.php | 2 +- Theme/Backend/staff-list.tpl.php | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index c72e487..e66a43c 100644 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -19,7 +19,7 @@ "type": 2, "subtype": 1, "name": "Employees", - "uri": "/{/lang}/backend/hr/staff/list?{?}", + "uri": "{/lang}/backend/hr/staff/list?{?}", "target": "self", "icon": null, "order": 1, @@ -33,7 +33,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "/{/lang}/backend/hr/staff/list?{?}", + "uri": "{/lang}/backend/hr/staff/list?{?}", "target": "self", "icon": null, "order": 1, @@ -49,7 +49,7 @@ "type": 3, "subtype": 1, "name": "Create", - "uri": "/{/lang}/backend/hr/staff/create?{?}", + "uri": "{/lang}/backend/hr/staff/create?{?}", "target": "self", "icon": null, "order": 5, @@ -67,7 +67,7 @@ "type": 2, "subtype": 1, "name": "Departments", - "uri": "/{/lang}/backend/hr/department/list?{?}", + "uri": "{/lang}/backend/hr/department/list?{?}", "target": "self", "icon": null, "order": 1, @@ -81,7 +81,7 @@ "type": 3, "subtype": 1, "name": "List", - "uri": "/{/lang}/backend/hr/department/list?{?}", + "uri": "{/lang}/backend/hr/department/list?{?}", "target": "self", "icon": null, "order": 1, diff --git a/Theme/Backend/department-list.tpl.php b/Theme/Backend/department-list.tpl.php index 5d46292..8e84bfd 100644 --- a/Theme/Backend/department-list.tpl.php +++ b/Theme/Backend/department-list.tpl.php @@ -40,7 +40,7 @@ echo $this->getData('nav')->render(); ?> $value) : $c++; - $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/hr/department/single?{?}&id=' . $value->getId()); ?> + $url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/hr/department/single?{?}&id=' . $value->getId()); ?> printHtml($value->getId()); ?> printHtml($value->getName()); ?> diff --git a/Theme/Backend/planning-dashboard.tpl.php b/Theme/Backend/planning-dashboard.tpl.php index 4727932..d23ff03 100644 --- a/Theme/Backend/planning-dashboard.tpl.php +++ b/Theme/Backend/planning-dashboard.tpl.php @@ -25,7 +25,7 @@
- printHtml($this->app->accountManager->get($request->getHeader()->getAccount())->getL11n()->lang[0]['More'] ); ?>
diff --git a/Theme/Backend/staff-list.tpl.php b/Theme/Backend/staff-list.tpl.php index adcd829..200992d 100644 --- a/Theme/Backend/staff-list.tpl.php +++ b/Theme/Backend/staff-list.tpl.php @@ -42,7 +42,7 @@ echo $this->getData('nav')->render(); ?> $value) : $c++; - $url = \phpOMS\Uri\UriFactory::build('/{/lang}/backend/hr/staff/profile?{?}&id=' . $value->getId()); ?> + $url = \phpOMS\Uri\UriFactory::build('{/lang}/backend/hr/staff/profile?{?}&id=' . $value->getId()); ?> printHtml($value->getId()); ?> printHtml($value->getAccount()->getName1()); ?>