From: janw Date: Fri, 3 Jun 2005 13:37:51 +0000 (+0000) Subject: Added warnings. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4c146a742a32b4a3d87264ab57b924698823b573;p=gosa.git Added warnings. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@594 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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;