Fix inconsistent use of static and non-static methods in Context class

This commit is contained in:
Kijin Sung 2016-01-08 13:14:03 +09:00
parent 4dedd2508c
commit 8dac7bc5e9
2 changed files with 227 additions and 234 deletions

View file

@ -366,14 +366,9 @@ class TemplateHandler
return;
}
$__Context = &$GLOBALS['__Context__'];
$__Context = Context::getInstance();
$__Context->tpl_path = $this->path;
if($_SESSION['is_logged'])
{
$__Context->logged_info = Context::get('logged_info');
}
$level = ob_get_level();
ob_start();
if(substr($buff, 0, 7) == 'file://')