Remove system file

This commit is contained in:
Romain Neutron
2012-05-21 17:06:08 +02:00
parent 83e17077a4
commit 821d61d8ae

View File

@@ -137,7 +137,7 @@ abstract class task_abstract
{ {
return false; return false;
} }
/** /**
* *
* @return boolean * @return boolean
@@ -454,10 +454,9 @@ abstract class task_abstract
private function getLockfilePath() private function getLockfilePath()
{ {
$registry = registry::get_instance(); $core = \bootstrap::getCore();
$lockdir = $registry->get('GV_RootPath') . 'tmp/locks/';
system_file::mkdir($lockdir); $lockdir = $core->getRegistry()->get('GV_RootPath') . 'tmp/locks/';
$lockfile = ($lockdir . 'task_' . $this->getID() . '.lock'); $lockfile = ($lockdir . 'task_' . $this->getID() . '.lock');
return($lockfile); return($lockfile);