Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Commit

Permalink
fix(KB): broken service template called url and undefined path
Browse files Browse the repository at this point in the history
  • Loading branch information
sc979 committed Apr 9, 2019
1 parent 549be3e commit d739cf3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@

// Smarty template Init
$tpl = new Smarty();
$tpl = initSmartyTpl($path, $tpl);
$tpl = initSmartyTpl($modules_path, $tpl);

try {
$conf = getWikiConfig($pearDB);
Expand Down Expand Up @@ -166,11 +166,11 @@
foreach ($tplArr as $key1 => $value1) {
if ($firstTpl) {
$tplStr .= "<a href='" . $WikiURL .
" / index . php ? title = Service - Template : $value1' target='_blank'>" . $value1 . "</a>";
"/index.php?title=Service-Template:" . $value1 . "' target='_blank'>" . $value1 . "</a>";
$firstTpl = 0;
} else {
$tplStr .= "&nbsp;|&nbsp;<a href='" . $WikiURL .
" / index . php ? title = Service - Template : $value1' target='_blank'>" . $value1 . "</a>";
"/index.php?title=Service-Template:" . $value1 . "' target='_blank'>" . $value1 . "</a>";
}
}
}
Expand All @@ -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);
Expand Down

0 comments on commit d739cf3

Please sign in to comment.