function session_smarty in Lingotek Translation 7.5
Same name and namespace in other branches
- 7.7 lib/oauth-php/example/server/core/init.php \session_smarty()
- 7.2 lib/oauth-php/example/server/core/init.php \session_smarty()
- 7.3 lib/oauth-php/example/server/core/init.php \session_smarty()
- 7.4 lib/oauth-php/example/server/core/init.php \session_smarty()
- 7.6 lib/oauth-php/example/server/core/init.php \session_smarty()
3 calls to session_smarty()
- index.php in lib/
oauth-php/ example/ server/ www/ index.php - logon.php in lib/
oauth-php/ example/ server/ www/ logon.php - register.php in lib/
oauth-php/ example/ server/ www/ register.php
File
- lib/
oauth-php/ example/ server/ core/ init.php, line 77
Code
function session_smarty() {
if (!isset($GLOBALS['smarty'])) {
$GLOBALS['smarty'] = new Smarty();
$GLOBALS['smarty']->template_dir = dirname(__FILE__) . '/templates/';
$GLOBALS['smarty']->compile_dir = dirname(__FILE__) . '/../cache/templates_c';
}
return $GLOBALS['smarty'];
}