From 640a9478c4a62108d2d9d81eae5d2a9e0aef743b Mon Sep 17 00:00:00 2001 From: Tom N Harris Date: Sat, 16 Jun 2007 23:45:30 +0200 Subject: regex fix for JavaScript includes darcs-hash:20070616214530-6942e-5a585a29404e40a7e86bbb4de0fba124f45e61a7.gz --- lib/exe/js.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/exe/js.php') diff --git a/lib/exe/js.php b/lib/exe/js.php index 4b78ade4b..98b276d53 100644 --- a/lib/exe/js.php +++ b/lib/exe/js.php @@ -173,7 +173,7 @@ function js_load($file){ static $loaded = array(); $data = io_readFile($file); - while(preg_match('#/\*\s*DOKUWIKI:include(_once)\s+([\w\./]+)\s*\*/#',$data,$match)){ + while(preg_match('#/\*\s*DOKUWIKI:include(_once)?\s+([\w\./]+)\s*\*/#',$data,$match)){ $ifile = $match[2]; // is it a include_once? -- cgit v1.2.3