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