mirror of
https://github.com/flextype/flextype.git
synced 2025-08-14 17:14:22 +02:00
@@ -41,9 +41,7 @@ class GlobalVarsTwigExtension extends \Twig_Extension implements \Twig_Extension
|
||||
'PATH_CONFIG_SITE' => PATH['config']['site'],
|
||||
'PATH_CACHE' => PATH['cache'],
|
||||
'flextype_version' => FLEXTYPE_VERSION,
|
||||
'registry' => $this->flextype['registry']->dump(),
|
||||
'is_logged' => ((Session::exists('role') && Session::get('role') == 'admin') ? true : false),
|
||||
'username' => Session::exists('username') ? Session::get('username') : ''
|
||||
'registry' => $this->flextype['registry']->dump()
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user