mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Merge branch '3.7'
This commit is contained in:
@@ -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