rename hash for footerjs into hashjs

This commit is contained in:
Uwe Steinmann 2020-12-11 09:27:42 +01:00
parent 120ab5a0a9
commit 858b01fac1

View File

@ -208,7 +208,7 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
file_put_contents($this->params['cachedir'].'/js/'.$hashjs.'.js', $jscode);
}
$tmp['action'] = 'footerjs';
$tmp['hash'] = $hashjs;
$tmp['hashjs'] = $hashjs;
echo '<script src="'.$this->params['absbaseprefix'].'out/out.'.$this->params['class'].'.php?'.http_build_query($tmp).'"></script>'."\n";
}
if(method_exists($this, 'js')) {
@ -234,8 +234,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
function footerjs() { /* {{{ */
header('Content-Type: application/javascript');
if(file_exists($this->params['cachedir'].'/js/'.$_GET['hash'].'.js')) {
readfile($this->params['cachedir'].'/js/'.$_GET['hash'].'.js');
if(file_exists($this->params['cachedir'].'/js/'.$_GET['hashjs'].'.js')) {
readfile($this->params['cachedir'].'/js/'.$_GET['hashjs'].'.js');
}
} /* }}} */