From 142df3616f7d7d68c553aa01a6ea2bd51fa0ce5c Mon Sep 17 00:00:00 2001 From: Alexandre Rosenfeld Date: Mon, 21 Feb 2011 15:35:50 +0000 Subject: [PATCH] Fix upgrade command when it has to clear the compiled cache. --- workflow/engine/bin/tasks/cliUpgrade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/workflow/engine/bin/tasks/cliUpgrade.php b/workflow/engine/bin/tasks/cliUpgrade.php index 4f617ead3..162d9392d 100644 --- a/workflow/engine/bin/tasks/cliUpgrade.php +++ b/workflow/engine/bin/tasks/cliUpgrade.php @@ -40,20 +40,20 @@ CLI::taskRun(run_upgrade); /** - * A versoni of rm_dir which does not exits on error. + * A version of rm_dir which does not exits on error. * * @param string $filename directory or file to remove * @param bool $filesOnly either to remove the containing directory as well or not */ function rm_dir($filename, $filesOnly = false) { if (is_file($filename)) { - @unlink($filename) or CLI::message(CLI::error("Could not remove file $filename")."\n");; + @unlink($filename) or CLI::logging(CLI::error("Could not remove file $filename")."\n"); } else { foreach(glob("$filename/*") as $f) { rm_dir($f); } if (!$filesOnly) - @rmdir($filename) or CLI::message(CLI::error("Could not remove directory $filename")."\n"); + @rmdir($filename) or CLI::logging(CLI::error("Could not remove directory $filename")."\n"); } }