2
0
forked from Wavyzz/dolibarr

Fix invalid link after renaming a website key.

This commit is contained in:
Laurent Destailleur
2017-08-22 15:32:45 +02:00
parent 109e0f7179
commit ec56ff59d6
2 changed files with 36 additions and 4 deletions

View File

@@ -166,7 +166,10 @@ function dolIncludeHtmlContent($contentfile)
}
// TODO Remove body and html if included
//$content = file_get_contents($fullpathfile);
//print preg_replace(array('/^.*<body[^>]*>/ims','/<\/body>.*$/ims'), array('', ''), $content);*/
print "\n".'<!-- include '.$fullpathfile.' level = '.$includehtmlcontentopened.' -->'."\n";
$res = include $fullpathfile; // Include because we want to execute code content
if (! $res)
{