Always us /zm in cache_bust

This commit is contained in:
Isaac Connor 2018-07-04 14:46:22 -04:00
parent 10531df543
commit cf4a1c73fd
1 changed files with 2 additions and 2 deletions

View File

@ -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 'cache/'.$cacheFile;
return '/zm/cache/'.$cacheFile;
} else {
Warning("Failed linking $file to $cacheFile");
}