projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
529ecd9
)
Fix url_prefix on css and js
author
Julien HEYMAN
<julien.heyman@atos.net>
Thu, 27 Feb 2014 17:52:53 +0000
(18:52 +0100)
committer
Julien HEYMAN
<julien.heyman@atos.net>
Thu, 27 Feb 2014 17:55:10 +0000
(18:55 +0100)
src/www/include/Layout.class.php
patch
|
blob
|
history
diff --git
a/src/www/include/Layout.class.php
b/src/www/include/Layout.class.php
index 2b5833d750056b54ad3bcdd272ee6aadba28823e..8c897b48365dd6878383edf5b42184de878a1d1b 100644
(file)
--- a/
src/www/include/Layout.class.php
+++ b/
src/www/include/Layout.class.php
@@
-182,6
+182,9
@@
class Layout extends Error {
$js .= '?'.date ("U", filemtime($filename));
}
}
+ if (forge_get_config('url_prefix')){
+ $js = forge_get_config('url_prefix').$js;
+ }
$this->javascripts[] = $js;
}
}
@@
-201,6
+204,9
@@
class Layout extends Error {
$css .= '?'.date ("U", filemtime($filename));
}
}
+ if (forge_get_config('url_prefix')){
+ $css = forge_get_config('url_prefix').$css;
+ }
$this->stylesheets[] = array('css' => $css, 'media' => $media);
}
}