스타일시트 위치조정 때 조건문있으면 함께 이동하도록 수정

This commit is contained in:
chicpro
2014-02-04 18:03:36 +09:00
parent eeac929ca6
commit 3c0982974b

View File

@ -2195,7 +2195,7 @@ function html_end()
$buffer = ob_get_contents();
ob_end_clean();
preg_match('#<body>(.*)</body>#is', $buffer, $bodys);
preg_match_all('/(\r|\n)?<link[^>]+>/i', $bodys[0], $links);
preg_match_all('/[\n\r]?(<!.*)?(<link[^>]+>).*(<!.*>)?/i', $bodys[0], $links);
$stylesheet = '';
$links[0] = array_unique($links[0]);
foreach ($links[0] as $key=>$link) {