mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 00:24:35 +00:00
fixes some bugs in the View/Entry.php for the Menu
This commit is contained in:
@@ -22,6 +22,8 @@ switch ($entry->template_kurzbz) {
|
||||
|
||||
if (strpos($url, '../cms/news.php') === 0)
|
||||
$url = site_url('/CisHtml/Cms/news' . substr($url, 15));
|
||||
if (strpos($url, '../index.ci.php') === 0)
|
||||
$url = site_url() . str_replace("../index.ci.php","",$url);
|
||||
if (strpos($url, '../') === 0)
|
||||
$url = APP_ROOT . substr($url, 3);
|
||||
}
|
||||
@@ -37,7 +39,8 @@ switch ($entry->template_kurzbz) {
|
||||
$this->load->view('templates/CISHTML-Menu/EntryBase', [
|
||||
'entry' => $entry,
|
||||
'menu_id' => $menu_id,
|
||||
'link' => site_url('/CisHtml/Cms/content/' . $entry->content_id)
|
||||
'link' => site_url('/CisHtml/Cms/content/' . $entry->content_id),
|
||||
'target' => ''
|
||||
]);
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user