summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTom N Harris <tnharris@whoopdedo.org>2007-06-16 23:45:30 +0200
committerTom N Harris <tnharris@whoopdedo.org>2007-06-16 23:45:30 +0200
commit640a9478c4a62108d2d9d81eae5d2a9e0aef743b (patch)
treeac29b65d69ba0b2e36389a31a57007f92f555ecd /lib
parent8873f713db6201384fa0cdb9d5f41767173fc740 (diff)
downloadrpg-640a9478c4a62108d2d9d81eae5d2a9e0aef743b.tar.gz
rpg-640a9478c4a62108d2d9d81eae5d2a9e0aef743b.tar.bz2
regex fix for JavaScript includes
darcs-hash:20070616214530-6942e-5a585a29404e40a7e86bbb4de0fba124f45e61a7.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/exe/js.php2
1 files changed, 1 insertions, 1 deletions
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?