Skip to content

Commit d7b5995

Browse files
committed
Releasing 1.1.3
2 parents 3a04072 + a447ad9 commit d7b5995

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/TgUtils/Templating/Processor.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,16 @@ public function process($s) {
6666
* If attribute is missing, a snippet with this name will be searched
6767
*/
6868
protected function getVar($s) {
69-
$parts = explode('.', $s);
70-
$object = $parts[0];
71-
if (count($parts) > 1) return $this->getAttribute($object, $parts[1]);
69+
$parts = explode('.', $s);
70+
$objectKey = $parts[0];
71+
if (count($parts) > 1) return $this->getAttribute($objectKey, $parts[1]);
7272
else {
7373
// Is there a string object?
74-
$object = $this->getObject($object);
74+
$object = $this->getObject($objectKey);
7575
if (is_string($object)) return $object;
7676

7777
// Try a snippet
78-
$snippet = $this->getSnippet($object);
78+
$snippet = $this->getSnippet($objectKey);
7979
if ($snippet != NULL) {
8080
if (is_string($snippet)) return $snippet;
8181
if (is_array($snippet)) return I18N::_($snippet, $this->language);

0 commit comments

Comments
 (0)