mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
regex replaces old content links with new CIS4 controller links and adopts the Menu Entry links to not refresh the page when closing the Menu point
This commit is contained in:
@@ -81,7 +81,6 @@ class Cms extends FHCAPI_Controller
|
||||
$sichtbar = $this->input->get("sichtbar",TRUE);
|
||||
|
||||
$content = $this->cmslib->getContent($content_id, $version, $sprache, $sichtbar);
|
||||
|
||||
$content = $this->getDataOrTerminateWithError($content);
|
||||
|
||||
$this->terminateWithSuccess($content);
|
||||
|
||||
@@ -117,8 +117,11 @@ class CmsLib
|
||||
|
||||
|
||||
$transformed_content = $processor->transformToXML($XML);
|
||||
//replaces all the dms.php with the new CIS4 Controller
|
||||
$transformed_content = str_replace('dms.php', APP_ROOT . 'cms/dms.php', $transformed_content);
|
||||
|
||||
//replaces all the cms.php with the new CIS4 Controller
|
||||
$transformed_content = preg_replace('/content\.php\?content\_id\=([0-9]+)/', APP_ROOT.'cis.php/CisVue/Cms/content/$1', $transformed_content);
|
||||
|
||||
return success([
|
||||
"betreff"=>$betreff,
|
||||
"type"=>$content->template_kurzbz,
|
||||
|
||||
@@ -225,7 +225,7 @@ if ($result = @$db->db_query("SELECT * FROM campus.tbl_content WHERE beschreibun
|
||||
-- queries the content_id for the VORLAGEN
|
||||
(SELECT content_id from campus.tbl_content WHERE beschreibung = 'VORLAGEN'),
|
||||
1,TRUE,
|
||||
'<content></content>',
|
||||
'<content><url><![CDATA[#Vorlagen]]></url><target><![CDATA[_self]]></target></content>',
|
||||
null,null,null,null,NOW(),null,'Vorlagen',null
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user