Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
5.1, 5.2 Certification, 5.2-rc1
-
None
-
None
Description
When running scripts through ezpublish/console ezpublish:legacy:script, a fatal error / warning / notice can be thrown if the script tries to use a variable (like $cli) from the global scope.
The reason is that legacy scripts aren't executed in the global scope anymore, since the new stack script runs them through a kernel.
Each script, extensions included, needs to be fixed, for instance using closures.