diff --git a/web/includes/functions.php b/web/includes/functions.php index 00d77fbbb..0600d4f60 100644 --- a/web/includes/functions.php +++ b/web/includes/functions.php @@ -2063,8 +2063,8 @@ function cache_bust( $file ) { global $css; $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; + if ( file_exists(ZM_DIR_CACHE.'/'.$cacheFile) or symlink(ZM_PATH_WEB.'/'.$file, ZM_DIR_CACHE.'/'.$cacheFile) ) { + return '/zm/cache/'.$cacheFile; } else { Warning("Failed linking $file to $cacheFile"); }