summaryrefslogtreecommitdiff
path: root/src/ste/VariableNode.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2014-05-25 12:13:00 +0200
committerKevin Chabowski <kevin@kch42.de>2014-05-25 12:13:00 +0200
commit8c92f0fce1493651e5bacecdbdfc1bd32327c279 (patch)
tree4accdcbc21bec4ea264f7dd71d7664b9c2d3a1f4 /src/ste/VariableNode.php
parent5ce8ff18911ae6f38da12e8df157943d5a7d81ce (diff)
parent533c1285c05665cfcd8794152b87e97fe2885675 (diff)
downloadste-8c92f0fce1493651e5bacecdbdfc1bd32327c279.tar.gz
ste-8c92f0fce1493651e5bacecdbdfc1bd32327c279.tar.bz2
ste-8c92f0fce1493651e5bacecdbdfc1bd32327c279.zip
Merge branch 'develop'1.0.2
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 . ']';