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

@ -2063,8 +2063,8 @@ function cache_bust( $file ) {
global $css; global $css;
$dirname = preg_replace( '/\//', '_', $parts['dirname'] ); $dirname = preg_replace( '/\//', '_', $parts['dirname'] );
$cacheFile = $dirname.'_'.$parts['filename'].'-'.$css.'-'.filemtime($file).'.'.$parts['extension']; $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 ) ) { 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 { } else {
Warning("Failed linking $file to $cacheFile"); Warning("Failed linking $file to $cacheFile");
} }