base_href variable for javascript, to avoid generating dynamic JS with PHP
This commit is contained in:
parent
3b205d98eb
commit
2162dbebdd
@ -237,6 +237,8 @@ class Page {
|
||||
protected function add_auto_html_headers() {
|
||||
$data_href = get_base_href();
|
||||
|
||||
$this->add_html_header("<script>base_href = '$data_href';</script>");
|
||||
|
||||
/* Attempt to cache the CSS & JavaScript files */
|
||||
if ($this->add_cached_auto_html_headers() === FALSE) {
|
||||
// caching failed, add all files to html_headers.
|
||||
|
Loading…
x
Reference in New Issue
Block a user