From 0832d30419824e7b006932615e39b88a1bb91b45 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 3 Jun 2005 11:35:46 +0000 Subject: [PATCH] Added clean rump git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@590 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions.inc | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/include/functions.inc b/include/functions.inc index 42d2f2a3f..ea9bed49e 100644 --- a/include/functions.inc +++ b/include/functions.inc @@ -1614,9 +1614,30 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) gosa_log ("PHP error: $errstr ($errfile, line $errline)"); } + function dummy_error_handler() { } + +function clean_smarty_compile_dir($directory) +{ + $svn_revision = '$Revision$'; + + /* Is there a stamp containing the current revision? */ + # check for "$config->...['CONFIG']/revision" and the + # contents should match the revision number + + /* No, the revision has changed - and possibly the templates/translations. + Drop the contents of $directory now... */ + if (true){ + # Recursively delete contents "$config->...['CONFIG']". and create + # new revision file. NO folow symlinks!!! + ; + } + +} + + // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: ?> -- 2.30.2