file_unlink() should return result

This commit is contained in:
Savetheinternet 2011-06-16 03:48:29 +10:00
parent 12d6dc85e6
commit c119705326

3
inc/functions.php Normal file → Executable file
View File

@ -317,7 +317,7 @@
$debug['unlink'][] = $path;
}
@unlink($path);
$ret = @unlink($path);
if(isset($config['purge']) && isset($_SERVER['HTTP_HOST'])) {
// Purge cache
if(basename($path) == $config['file_index']) {
@ -332,6 +332,7 @@
}
purge($path);
}
return $ret;
}
function listBoards() {