Skip to content

Commit 5935b32

Browse files
committed
create-phar: fix
1 parent 4c3cff0 commit 5935b32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/create-phar/create-phar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
continue;
2424

2525
} elseif ($file->getExtension() === 'phtml') {
26-
$s = preg_replace_callback('#<\?php (require |readfile\(|.*file_get_contents\().*?(/.+\.(js|css))\'\)* \?>#', function ($m) use ($file) {
26+
$s = preg_replace_callback('#<\?(?:php|=) (require |readfile\(|.*file_get_contents\().*?(/.+\.(js|css))\'\)* \?>#', function ($m) use ($file) {
2727
return file_get_contents($file->getPath() . $m[2]);
2828
}, $s);
2929
$s = preg_replace_callback('#(<(script|style).*>)(.*)(</)#Uis', function ($m) {

0 commit comments

Comments
 (0)