mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-20 08:31:26 +00:00
include js in footer with absolute path
This commit is contained in:
parent
a711a9e6ee
commit
92a483ac8b
|
@ -149,12 +149,12 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
||||||
parse_str($_SERVER['QUERY_STRING'], $tmp);
|
parse_str($_SERVER['QUERY_STRING'], $tmp);
|
||||||
$tmp['action'] = 'footerjs';
|
$tmp['action'] = 'footerjs';
|
||||||
$tmp['hash'] = $hashjs;
|
$tmp['hash'] = $hashjs;
|
||||||
echo '<script src="../out/out.'.$this->params['class'].'.php?'.http_build_query($tmp).'"></script>'."\n";
|
echo '<script src="'.$this->params['absbaseprefix'].'out/out.'.$this->params['class'].'.php?'.http_build_query($tmp).'"></script>'."\n";
|
||||||
}
|
}
|
||||||
if(method_exists($this, 'js')) {
|
if(method_exists($this, 'js')) {
|
||||||
parse_str($_SERVER['QUERY_STRING'], $tmp);
|
parse_str($_SERVER['QUERY_STRING'], $tmp);
|
||||||
$tmp['action'] = 'js';
|
$tmp['action'] = 'js';
|
||||||
echo '<script src="../out/out.'.$this->params['class'].'.php?'.http_build_query($tmp).'"></script>'."\n";
|
echo '<script src="'.$this->params['absbaseprefix'].'out/out.'.$this->params['class'].'.php?'.http_build_query($tmp).'"></script>'."\n";
|
||||||
}
|
}
|
||||||
echo "</body>\n</html>\n";
|
echo "</body>\n</html>\n";
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user