mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-24 23:38:29 -04:00
We should not use a hard path in cache bust
This commit is contained in:
1 parent
115e554d94
commit
05615c5cf4
1 file changed
+1
-1
@@ -2064,7 +2064,7 @@ function cache_bust( $file ) {
|
||||
$dirname = preg_replace( '/\//', '_', $parts['dirname'] );
|
||||
$cacheFile = $dirname.'_'.$parts['filename'].'-'.$css.'-'.filemtime($file).'.'.$parts['extension'];
|
||||
if ( file_exists(ZM_DIR_CACHE.'/'.$cacheFile) or symlink(ZM_PATH_WEB.'/'.$file, ZM_DIR_CACHE.'/'.$cacheFile) ) {
|
||||
return '/zm/cache/'.$cacheFile;
|
||||
return 'cache/'.$cacheFile;
|
||||
} else {
|
||||
Warning("Failed linking $file to $cacheFile");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user