mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 22:13:13 +00:00
Remove system file
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user