diff --git a/phpBB/includes/page_header.php b/phpBB/includes/page_header.php index fd2b059511..fe33ff252c 100644 --- a/phpBB/includes/page_header.php +++ b/phpBB/includes/page_header.php @@ -348,7 +348,7 @@ $template->assign_vars(array( 'S_CONTENT_ENCODING' => $lang['ENCODING'], 'S_CONTENT_DIR_LEFT' => $lang['LEFT'], 'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'], - 'S_TIMEZONE' => sprintf($lang['All_times'], $lang[$board_config['board_timezone']]), + 'S_TIMEZONE' => sprintf($lang['All_times'], $lang[floatval($board_config['board_timezone'])]), 'S_LOGIN_ACTION' => 'login.'.$phpEx.$SID, 'T_STYLESHEET_DATA' => $theme['css_data'], diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php index e8bb63e56b..acb4b357ed 100644 --- a/phpBB/includes/template.php +++ b/phpBB/includes/template.php @@ -174,7 +174,7 @@ class Template { if (!empty($_REQUEST['explain'])) { global $db; - echo $this->sql_report(); + echo $db->sql_report; return TRUE; } $_str = '';