We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91a71ee commit fe08ce0Copy full SHA for fe08ce0
src/TgUtils/Templating/Processor.php
@@ -70,6 +70,11 @@ protected function getVar($s) {
70
$object = $parts[0];
71
if (count($parts) > 1) return $this->getAttribute($object, $parts[1]);
72
else {
73
+ // Is there a string object?
74
+ $object = $this->getObject($object);
75
+ if (is_string($object)) return $object;
76
+
77
+ // Try a snippet
78
$snippet = $this->getSnippet($object);
79
if ($snippet != NULL) {
80
if (is_string($snippet)) return $snippet;
0 commit comments