From 4c146a742a32b4a3d87264ab57b924698823b573 Mon Sep 17 00:00:00 2001 From: janw Date: Fri, 3 Jun 2005 13:37:51 +0000 Subject: [PATCH] Added warnings. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@594 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/functions.inc b/include/functions.inc index 53263f3b7..f82510fd8 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -1656,6 +1656,7 @@ function clean_smarty_compile_dir($directory) is_writable($directory."/".$file)) { // delete file if(!unlink($directory."/".$file)) { + print_red("File ".$directory."/".$file." could not be deleted."); // This should never be reached } } elseif(is_dir($directory."/".$file) && @@ -1688,7 +1689,7 @@ function create_revision($revision_file, $revision) } fclose($fh); } else { - // Can not write to file + print_red("Can not write to revision file"); } return $result; -- 2.30.2