mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-24 02:12:17 +00:00
Correct paths
This commit is contained in:
@@ -21,7 +21,7 @@ switch ($entry->template_kurzbz) {
|
||||
$target = $xml->getElementsByTagName('target')->item(0)->nodeValue;
|
||||
|
||||
if (strpos($url, '../cms/news.php') === 0)
|
||||
$url = APP_ROOT . 'cis.php/CisHtml/Cms/news' . substr($url, 15);
|
||||
$url = site_url('/CisHtml/Cms/news' . substr($url, 15));
|
||||
if (strpos($url, '../') === 0)
|
||||
$url = APP_ROOT . substr($url, 3);
|
||||
}
|
||||
@@ -36,7 +36,7 @@ switch ($entry->template_kurzbz) {
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
$this->load->view('templates/CISHTML-Menu/EntryBase', ['entry' => $entry, 'menu_id' => $menu_id, 'link' => APP_ROOT . 'cis.php/CisHtml/Cms/content/' . $entry->content_id]);
|
||||
$this->load->view('templates/CISHTML-Menu/EntryBase', ['entry' => $entry, 'menu_id' => $menu_id, 'link' => site_url('/CisHtml/Cms/content/' . $entry->content_id)]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user