6
Try the following modification in /modules/system/admin/tplsets/main.php around lines 1200 in the
le="color: #000000"><?php case 'previewtpl':
section :
le="color: #000000"><?php $csscount = count($css); //+gv001 Missing start tag? $dummylayout .= "<style>"; //-gv001 Missing start tag? for ($i = 0; $i < $csscount; $i++) {
Move these lines
le="color: #000000"><?php $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
le="color: #000000"><?php foreach ($lines as $line) {
to before
le="color: #000000"><?php include_once XOOPS_ROOT_PATH.'/modules/system/admin/tplsets/tplform.php';