summaryrefslogtreecommitdiff
path: root/src/ste/VariableNode.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2014-05-25 12:12:16 +0200
committerKevin Chabowski <kevin@kch42.de>2014-05-25 12:12:16 +0200
commit45d8f703d7cbcdf21248e5ad7aafb6b68054d258 (patch)
treed73acb060121fbe23e9f66e921b553dc40bb43b7 /src/ste/VariableNode.php
parente21cfaafb0f7ceacca3cb94c15608bcc1148f8a1 (diff)
downloadste-45d8f703d7cbcdf21248e5ad7aafb6b68054d258.tar.gz
ste-45d8f703d7cbcdf21248e5ad7aafb6b68054d258.tar.bz2
ste-45d8f703d7cbcdf21248e5ad7aafb6b68054d258.zip
Fixed backward compatibility with pre 1.0 versions.
Diffstat (limited to 'src/ste/VariableNode.php')
-rw-r--r--src/ste/VariableNode.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ste/VariableNode.php b/src/ste/VariableNode.php
index b312e81..5fd59ff 100644
--- a/src/ste/VariableNode.php
+++ b/src/ste/VariableNode.php
@@ -6,7 +6,7 @@ class VariableNode extends ASTNode {
public $name;
public $arrayfields = array();
public function transcompile() {
- $varaccess = '@$ste->vars[' . (is_numeric($this->name) ? $this->name : '"' . Misc::escape_text($this->name) . '"'). ']';
+ $varaccess = '@$ste->scope[' . (is_numeric($this->name) ? $this->name : '"' . Misc::escape_text($this->name) . '"'). ']';
foreach($this->arrayfields as $af) {
if((count($af) == 1) and ($af[0] instanceof TextNode) and is_numeric($af[0]->text)) {
$varaccess .= '[' . $af->text . ']';