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:
SimonGschnell
2024-10-14 10:17:20 +02:00
parent 9fd02460ce
commit ed1d4b1a50
3 changed files with 5 additions and 3 deletions
+4 -1
View File
@@ -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,