6
Try the following modification in /modules/system/admin/tplsets/main.php around lines 1200 in the
case 'previewtpl':
section :
$csscount = count($css);
//+gv001 Missing start tag?
$dummylayout .= "<style>";
//-gv001 Missing start tag?
for ($i = 0; $i < $csscount; $i++) {
Move these lines
$lines = preg_split("/(rn|r|n)( *)/", $xoopsTpl->fetch('file:'.XOOPS_CACHE_PATH.'/'.$dummyfile));
$xoopsTpl->clear_compiled_tpl('file:'.XOOPS_CACHE_PATH.'/'.$dummyfile);
unlink(XOOPS_CACHE_PATH.'/'.$dummyfile);
from before
foreach ($lines as $line) {
to before
include_once XOOPS_ROOT_PATH.'/modules/system/admin/tplsets/tplform.php';