Code

Added warnings.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 3 Jun 2005 13:37:51 +0000 (13:37 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 3 Jun 2005 13:37:51 +0000 (13:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@594 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions.inc

index 53263f3b74d7400a35b3eab3a9d0a390bc721c92..f82510fd8c2acaa46427edb667c36bac252ba86a 100644 (file)
@@ -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;