Enable static calling of Context::init() and convert unnecessary instance properties into static properties

This commit is contained in:
Kijin Sung 2018-03-03 01:44:05 +09:00
parent 76aafac4a7
commit 9d06f6a9e2
3 changed files with 97 additions and 76 deletions

View file

@ -983,6 +983,10 @@ class TemplateHandler
{
return '$' . $matches[1];
}
elseif ($matches[1] === 'lang')
{
return '$GLOBALS[\'lang\']';
}
else
{
return '$__Context->' . $matches[1];