From 73a3cb1ffb54a4df016fc51e7f1d2a66ce0ab14e Mon Sep 17 00:00:00 2001
From: Tobi <40991903+tobka777@users.noreply.github.com>
Date: Mon, 7 Jan 2019 22:44:36 +0100
Subject: [PATCH 1/2] Fix: Links not correct if baseurlpath == ''
Links are not correct if $this->data['baseurlpath'] == ''
They link to https://module.php/oauth2/... and this is not correct
---
templates/registry_list.php | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/templates/registry_list.php b/templates/registry_list.php
index 2a7d21f..c459ebf 100644
--- a/templates/registry_list.php
+++ b/templates/registry_list.php
@@ -4,7 +4,12 @@
$this->data['head'] = '' . "\n";
$this->includeAtTemplateBase('includes/header.php');
-$moduleurlpath = '/' . $this->data['baseurlpath'].'/module.php/oauth2/';
+if($this->data['baseurlpath'] == '') {
+ $moduleurlpath = '/module.php/oauth2/';
+}
+else {
+ $moduleurlpath = '/' . $this->data['baseurlpath'].'/module.php/oauth2/';
+}
if (!empty($this->data['clients'])) {
$clients = [];
From f157591f6ac6c7ecb509e56ed97ef24bcc8fff06 Mon Sep 17 00:00:00 2001
From: Tobi <40991903+tobka777@users.noreply.github.com>
Date: Tue, 8 Jan 2019 11:47:21 +0100
Subject: [PATCH 2/2] Remove double slash in moduleurlpath
---
templates/registry_list.php | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/templates/registry_list.php b/templates/registry_list.php
index c459ebf..de22d85 100644
--- a/templates/registry_list.php
+++ b/templates/registry_list.php
@@ -4,12 +4,7 @@
$this->data['head'] = '' . "\n";
$this->includeAtTemplateBase('includes/header.php');
-if($this->data['baseurlpath'] == '') {
- $moduleurlpath = '/module.php/oauth2/';
-}
-else {
- $moduleurlpath = '/' . $this->data['baseurlpath'].'/module.php/oauth2/';
-}
+$moduleurlpath = '/' . $this->data['baseurlpath'].'module.php/oauth2/';
if (!empty($this->data['clients'])) {
$clients = [];