|
|
@ -735,12 +735,16 @@ function file_unlink($path) { |
|
|
|
$debug['unlink'][] = $path; |
|
|
|
} |
|
|
|
|
|
|
|
$ret = @unlink($path); |
|
|
|
if (file_exists($path)) { |
|
|
|
$ret = @unlink($path); |
|
|
|
|
|
|
|
if ($config['gzip_static']) { |
|
|
|
$gzpath = "$path.gz"; |
|
|
|
if ($config['gzip_static']) { |
|
|
|
$gzpath = "$path.gz"; |
|
|
|
|
|
|
|
@unlink($gzpath); |
|
|
|
@unlink($gzpath); |
|
|
|
} |
|
|
|
} else { |
|
|
|
$ret = false; |
|
|
|
} |
|
|
|
|
|
|
|
if (isset($config['purge']) && $path[0] != '/' && isset($_SERVER['HTTP_HOST'])) { |
|
|
|