From 72abd159629c345e4721dc5292a030bc012317a9 Mon Sep 17 00:00:00 2001 From: Tomasz Wolniewicz <twoln@umk.pl> Date: Wed, 21 Jun 2023 17:24:47 +0200 Subject: [PATCH] after changing of the entity storage no manipulation is needed --- lib/eduGAIN_entity.php | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/lib/eduGAIN_entity.php b/lib/eduGAIN_entity.php index 71b9dbd..557c9d6 100644 --- a/lib/eduGAIN_entity.php +++ b/lib/eduGAIN_entity.php @@ -74,18 +74,6 @@ class eduGAIN_entity extends eduGAIN { $this->globalStats = $out; } - private function generateNamespaces() { - $out = ''; - $q = "SELECT * FROM feed_namespaces"; - $result = $this->databaseQuery($q); - while ($obj = $result->fetch_assoc()) { - $nskey = $obj['nskey']; - $nsvalue = $obj['nsvalue']; - $out .= $nskey . '="' . $nsvalue . '" '; - } - return $out; - } - /** * Show entity metadata XML code */ @@ -99,13 +87,11 @@ class eduGAIN_entity extends eduGAIN { if (!is_numeric($entity_row_id)) { exit; } - $ns = $this->generateNamespaces(); $q = "SELECT entity FROM entities WHERE id=$entity_row_id"; $result = $this->databaseQuery($q); if ($obj = $result->fetch_assoc()) { $entityText = base64_decode($obj['entity']); - $entity = preg_replace('/md:EntityDescriptor /','md:EntityDescriptor ' . $ns, $entityText); - return($entity); + return($entityText); } else { die("entity search problem"); } -- GitLab