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:
parent
642773b5af
commit
4c719f5efd
@ -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.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user