Module: website Branch: master Commit: 4afc4844146653d9225967e2a08204790cd1f4f9 URL: http://source.winehq.org/git/website.git/?a=commit;h=4afc4844146653d9225967e...
Author: Jeremy Newman jnewman@codeweavers.com Date: Wed May 4 10:50:52 2011 -0500
fix js path when loading dynamically
---
include/html.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/html.php b/include/html.php index f71e047..71214d4 100644 --- a/include/html.php +++ b/include/html.php @@ -1419,11 +1419,11 @@ class html { // in ajax mode, add the js link inline $js = ""; - $js_file = "{$this->_file_root}/js/{$match[1][$i]}.js"; + $js_file = "{$this->_file_root}/{$match[1][$i]}.js"; if (file_exists($js_file)) { $mtime = filemtime($js_file); - $js = "<script src="{$this->_web_root}/js/{$match[1][$i]}.js?v={$mtime}" type="text/javascript"></script>\n"; + $js = "<script src="{$this->_web_root}/{$match[1][$i]}.js?v={$mtime}" type="text/javascript"></script>\n"; unset($mtime); } $in = str_replace('<!--JS:['.$match[1][$i].']-->', $js, $in);