forked from leftypol/leftypol
file_unlink() should return result
This commit is contained in:
parent
12d6dc85e6
commit
c119705326
1 changed files with 2 additions and 1 deletions
3
inc/functions.php
Normal file → Executable file
3
inc/functions.php
Normal file → Executable file
|
@ -317,7 +317,7 @@
|
||||||
$debug['unlink'][] = $path;
|
$debug['unlink'][] = $path;
|
||||||
}
|
}
|
||||||
|
|
||||||
@unlink($path);
|
$ret = @unlink($path);
|
||||||
if(isset($config['purge']) && isset($_SERVER['HTTP_HOST'])) {
|
if(isset($config['purge']) && isset($_SERVER['HTTP_HOST'])) {
|
||||||
// Purge cache
|
// Purge cache
|
||||||
if(basename($path) == $config['file_index']) {
|
if(basename($path) == $config['file_index']) {
|
||||||
|
@ -332,6 +332,7 @@
|
||||||
}
|
}
|
||||||
purge($path);
|
purge($path);
|
||||||
}
|
}
|
||||||
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
function listBoards() {
|
function listBoards() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue