You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 8, 2021. It is now read-only.
A workaround, which doesn't actually cure the problem source, but make it work some how. Add a line as shown below in the file Opt/Class.php, in the class Opt_View, the function _parse.
<?php// [...]$ctx = newOpt_InternalContext;
$ctx->_data = &$this->_data;
$ctx->_global = &self::$_global;
$ctx->_vars = &self::$_vars;
$ctx->_procs = &self::$_procedures;
+ $ctx->_data['global'] = &self::$_global; // This is a workaround// [...]?>
The text was updated successfully, but these errors were encountered:
# for freeto subscribe to this conversation on GitHub.
Already have an account?
#.
Reproduce
(This is a copy of http://bugs.invenzzia.org/task/180 )
Create a template accessing a global variable in some way, assigned some how (I can't see any special conditions to trigger that bug).
Result
All global variables are read as null because the compiler thinks it's a normal assigned variable, not a global one.
Expected
If I hack the compiled template manually, $ctx->_global actually contains my desired variables, meaning the compiler should create the following.
Workaround
A workaround, which doesn't actually cure the problem source, but make it work some how. Add a line as shown below in the file Opt/Class.php, in the class Opt_View, the function _parse.
The text was updated successfully, but these errors were encountered: