From 821d61d8ae02865df1479c8f0f6abed7605da7c6 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Mon, 21 May 2012 17:06:08 +0200 Subject: [PATCH] Remove system file --- lib/classes/task/abstract.class.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/classes/task/abstract.class.php b/lib/classes/task/abstract.class.php index bbe2d0609a..053cd17632 100755 --- a/lib/classes/task/abstract.class.php +++ b/lib/classes/task/abstract.class.php @@ -137,7 +137,7 @@ abstract class task_abstract { return false; } - + /** * * @return boolean @@ -454,10 +454,9 @@ abstract class task_abstract private function getLockfilePath() { - $registry = registry::get_instance(); - $lockdir = $registry->get('GV_RootPath') . 'tmp/locks/'; + $core = \bootstrap::getCore(); - system_file::mkdir($lockdir); + $lockdir = $core->getRegistry()->get('GV_RootPath') . 'tmp/locks/'; $lockfile = ($lockdir . 'task_' . $this->getID() . '.lock'); return($lockfile);