Browse Source

Fix array syntax for PHP 5.3 compatibility

1.0
Jakub Turek 10 years ago
parent
commit
3547c03cef
  1. 2
      Mage/Task/BuiltIn/Filesystem/ApplyFaclsTask.php
  2. 2
      Mage/Task/BuiltIn/Filesystem/LinkSharedFilesTask.php

2
Mage/Task/BuiltIn/Filesystem/ApplyFaclsTask.php

@ -33,7 +33,7 @@ class ApplyFaclsTask extends AbstractTask implements IsReleaseAware
throw new SkipException('Parameter acl_param not set.'); throw new SkipException('Parameter acl_param not set.');
} }
$folders = $this->getParameter('folders', []); $folders = $this->getParameter('folders', array());
$recursive = $this->getParameter('recursive', false) ? ' -R ' : ' '; $recursive = $this->getParameter('recursive', false) ? ' -R ' : ' ';
foreach ($folders as $folder) { foreach ($folders as $folder) {

2
Mage/Task/BuiltIn/Filesystem/LinkSharedFilesTask.php

@ -147,6 +147,6 @@ class LinkSharedFilesTask extends AbstractTask implements IsReleaseAware
$path = $linkedEntity; $path = $linkedEntity;
} }
return [$path, $strategy]; return array($path, $strategy);
} }
} }

Loading…
Cancel
Save