From 7366836a35cf09b4f462ab168ab12743cb0776cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Chapron?= Date: Tue, 9 Apr 2019 11:48:06 +0200 Subject: [PATCH] fix(KB): broken service template called url and undefined path --- .../configKnowledge/display-serviceTemplates.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/include/configuration/configKnowledge/display-serviceTemplates.php b/www/include/configuration/configKnowledge/display-serviceTemplates.php index 1b68061c643..e7a64449663 100644 --- a/www/include/configuration/configKnowledge/display-serviceTemplates.php +++ b/www/include/configuration/configKnowledge/display-serviceTemplates.php @@ -84,7 +84,7 @@ // Smarty template Init $tpl = new Smarty(); -$tpl = initSmartyTpl($path, $tpl); +$tpl = initSmartyTpl($modules_path, $tpl); try { $conf = getWikiConfig($pearDB); @@ -166,11 +166,11 @@ foreach ($tplArr as $key1 => $value1) { if ($firstTpl) { $tplStr .= "" . $value1 . ""; + "/index.php?title=Service-Template:" . $value1 . "' target='_blank'>" . $value1 . ""; $firstTpl = 0; } else { $tplStr .= " | " . $value1 . ""; + "/index.php?title=Service-Template:" . $value1 . "' target='_blank'>" . $value1 . ""; } } } @@ -184,7 +184,7 @@ $tpl->assign("templateHostArray", $templateHostArray); } - $WikiVersion = getWikiVersion($WikiURL . ' / api . php'); + $WikiVersion = getWikiVersion($WikiURL . '/api.php'); $tpl->assign("WikiVersion", $WikiVersion); $tpl->assign("WikiURL", $WikiURL); $tpl->assign("content", $diff);