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) {
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 );
You can’t perform that action at this time.
0 commit comments