From d6fb3aecbae33c3b69cbf15d3c0264492122efbc Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 17 Dec 2017 16:26:34 +0100 Subject: [PATCH] Clean code --- htdocs/website/index.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/htdocs/website/index.php b/htdocs/website/index.php index 37e87c6367f..c8b9cb27202 100644 --- a/htdocs/website/index.php +++ b/htdocs/website/index.php @@ -2040,12 +2040,6 @@ if ($action == 'preview' || $action == 'createfromclone' || $action == 'createpa $i++; if ($i % 2 == 0) $tmpstyleinheader.=$valtmp."\n"; } - //$tmpstyleinheader.=''; - //$pos=strpos($tmpstyleinheader, ']*>)+/ims','aaa', $tmpstyleinheader); - //$tmpstyleinheader = preg_replace('/().*$/ims','$1', $tmpstyleinheader); - //$tmpstyleinheader = preg_replace('/.*]*>/ims','', $tmpstyleinheader); $tmpout.= $tmpstyleinheader."\n"; // Clean style that may affect global style of Dolibarr $tmpout=preg_replace('/}[\s\n]*body\s*{[^}]+}/ims','}',$tmpout);