From c1197053267f66343674a37bb69b7c88321b2fc9 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Thu, 16 Jun 2011 03:48:29 +1000 Subject: [PATCH] file_unlink() should return result --- inc/functions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) mode change 100644 => 100755 inc/functions.php diff --git a/inc/functions.php b/inc/functions.php old mode 100644 new mode 100755 index be3747d4..e8ee59cf --- a/inc/functions.php +++ b/inc/functions.php @@ -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() {