Skip to content
Snippets Groups Projects
Commit 969df2f1 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fix include_once for JavaScript

the second include was never removed, causing an endless loop.
parent 481343c2
No related branches found
No related tags found
No related merge requests found
......@@ -166,7 +166,10 @@ function js_load($file){
// is it a include_once?
if($match[1]){
$base = utf8_basename($ifile);
if($loaded[$base]) continue;
if($loaded[$base]){
$data = str_replace($match[0], '' ,$data);
continue;
}
$loaded[$base] = true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment