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 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);