File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66,16 +66,16 @@ public function process($s) {
66
66
* If attribute is missing, a snippet with this name will be searched
67
67
*/
68
68
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 ]);
72
72
else {
73
73
// Is there a string object?
74
- $ object = $ this ->getObject ($ object );
74
+ $ object = $ this ->getObject ($ objectKey );
75
75
if (is_string ($ object )) return $ object ;
76
76
77
77
// Try a snippet
78
- $ snippet = $ this ->getSnippet ($ object );
78
+ $ snippet = $ this ->getSnippet ($ objectKey );
79
79
if ($ snippet != NULL ) {
80
80
if (is_string ($ snippet )) return $ snippet ;
81
81
if (is_array ($ snippet )) return I18N ::_ ($ snippet , $ this ->language );
You can’t perform that action at this time.
0 commit comments