mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 05:23:21 +00:00
Merge branch '3.7'
This commit is contained in:
@@ -87,14 +87,14 @@ class module_console_taskrun extends Command
|
||||
if ($input->getOption('runner') === task_abstract::RUNNER_MANUAL) {
|
||||
$schedStatus = $task_manager->getSchedulerState();
|
||||
|
||||
if ($schedStatus && $schedStatus['status'] == 'running' && $schedStatus['pid']) {
|
||||
if ($schedStatus && $schedStatus['status'] == task_abstract::STATE_STARTED && $schedStatus['pid']) {
|
||||
$this->shedulerPID = $schedStatus['pid'];
|
||||
}
|
||||
$runner = task_abstract::RUNNER_MANUAL;
|
||||
} else {
|
||||
$runner = task_abstract::RUNNER_SCHEDULER;
|
||||
$schedStatus = $task_manager->getSchedulerState();
|
||||
if ($schedStatus && $schedStatus['status'] == 'running' && $schedStatus['pid']) {
|
||||
if ($schedStatus && $schedStatus['status'] == task_abstract::STATE_STARTED && $schedStatus['pid']) {
|
||||
$this->shedulerPID = $schedStatus['pid'];
|
||||
}
|
||||
}
|
||||
|
@@ -1780,7 +1780,7 @@ class task_period_archive extends task_abstract
|
||||
* @param array $nodesToDel out, filled with files to delete
|
||||
* @param integer $grp_rid
|
||||
*/
|
||||
private function archiveFile(\DOMDocument $dom, \DOMDocument $node, $path, $path_archived, $path_error, array &$nodesToDel, $grp_rid = 0)
|
||||
private function archiveFile(\DOMDocument $dom, \DOMElement $node, $path, $path_archived, $path_error, array &$nodesToDel, $grp_rid = 0)
|
||||
{
|
||||
$match = $node->getAttribute('match');
|
||||
|
||||
@@ -1837,7 +1837,7 @@ class task_period_archive extends task_abstract
|
||||
* @param integer $grp_rid
|
||||
* @param array $nodesToDel out, filled with files to delete
|
||||
*/
|
||||
private function archiveFileAndCaption(\DOMDOcument$dom, \DOMElement$node, \DOMElement$captionFileNode, $path, $path_archived, $path_error, $grp_rid, array &$nodesToDel)
|
||||
private function archiveFileAndCaption(\DOMDOcument$dom, \DOMElement $node, \DOMElement $captionFileNode = null, $path, $path_archived, $path_error, $grp_rid, array &$nodesToDel)
|
||||
{
|
||||
$ret = false;
|
||||
|
||||
@@ -1914,7 +1914,7 @@ class task_period_archive extends task_abstract
|
||||
$this->log($e->getMessage());
|
||||
}
|
||||
|
||||
if ($captionFileName != $file) {
|
||||
if ($captionFileName != $file && $captionFileName) {
|
||||
$this->log(sprintf(('copy \'%s\' to \'archived\''), $subpath . '/' . $captionFileName));
|
||||
|
||||
try {
|
||||
@@ -1942,7 +1942,7 @@ class task_period_archive extends task_abstract
|
||||
$this->log($e->getMessage());
|
||||
}
|
||||
|
||||
if ($captionFileName != $file) {
|
||||
if ($captionFileName != $file && $captionFileName) {
|
||||
$this->log(sprintf(('copy \'%s\' to \'error\''), $subpath . '/' . $captionFileName));
|
||||
|
||||
try {
|
||||
|
Reference in New Issue
Block a user