1
0
mirror of https://github.com/hauke68/Magallanes.git synced 2025-09-16 13:50:17 +02:00

PHP 5.3 does not support "[]" brackets.

This commit is contained in:
Андрей Колченко 2014-11-05 15:37:07 +03:00
parent 642773b5af
commit 4c719f5efd

View File

@ -58,13 +58,13 @@ class LinkSharedFilesTask extends AbstractTask implements IsReleaseAware
*/ */
public function run() public function run()
{ {
$linkedFiles = $this->getParameter('linked_files', []); $linkedFiles = $this->getParameter('linked_files', array());
$linkedFolders = $this->getParameter(self::LINKED_FOLDERS, []); $linkedFolders = $this->getParameter(self::LINKED_FOLDERS, array());
$linkingStrategy = $this->getParameter(self::LINKED_STRATEGY, self::ABSOLUTE_LINKING); $linkingStrategy = $this->getParameter(self::LINKED_STRATEGY, self::ABSOLUTE_LINKING);
$linkedEntities = array_merge($linkedFiles, $linkedFolders); $linkedEntities = array_merge($linkedFiles, $linkedFolders);
if (sizeof($linkedFiles) == 0 && sizeof($linkedFolders) == 0) { if (empty($linkedFiles) && empty($linkedFolders)) {
throw new SkipException('No files and folders configured for sym-linking.'); throw new SkipException('No files and folders configured for sym-linking.');
} }