스킨의 css 코드 위에 빈줄이 없는 경우 제대로 CAPTURE 되지 않는 오류 해결

This commit is contained in:
gnuboard
2013-06-13 13:57:04 +09:00
parent 883b861a48
commit cf77f1c381

View File

@ -1964,7 +1964,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('/(\r|\n)?<link[^>]+>/i', $bodys[0], $links);
$stylesheet = '';
$links[0] = array_unique($links[0]);
foreach ($links[0] as $key=>$link) {