diff --git a/phpBB/functions/error.php b/phpBB/functions/error.php index 1a21ab0023..5bb0b73000 100644 --- a/phpBB/functions/error.php +++ b/phpBB/functions/error.php @@ -24,10 +24,18 @@ function error_die($db, $error_code = "", $error_msg = "") { - global $template, $phpEx; + global $template, $phpEx, $default_lang; if(!$template->get("overall_header")) { + if(!empty($default_lang)) + { + include('language/lang_'.$default_lang.'.'.$phpEx); + } + else + { + include('language/lang_english.'.$phpEx); + } include('page_header.'.$phpEx); } if(!$error_msg) diff --git a/phpBB/templates/Default/viewforum_body.tpl b/phpBB/templates/Default/viewforum_body.tpl index ed97ca03c3..7c00fc65d5 100644 --- a/phpBB/templates/Default/viewforum_body.tpl +++ b/phpBB/templates/Default/viewforum_body.tpl @@ -3,7 +3,7 @@
- +
diff --git a/phpBB/upgrade_20.php b/phpBB/upgrade_20.php index 2081b36a07..094cc5dedd 100644 --- a/phpBB/upgrade_20.php +++ b/phpBB/upgrade_20.php @@ -417,7 +417,8 @@ Backups completed ok.

$forum_id = $row['forum_id']; $topic_status = $row['topic_status']; $topic_notify = $row['topic_notify']; - + $forum_id = $row['forum_id']; + $sql = "insert topics (topic_id, topic_title, topic_poster, topic_time, topic_views, forum_id, topic_status, topic_notify) values ($topic_id, '$topic_title', $topic_poster, $topic_time, $topic_views, $forum_id, $topic_status, $topic_notify)"; mysql_query($sql, $db); diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index efdee4569e..094e5ee61f 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -43,10 +43,6 @@ if(!$result = $db->sql_query($sql)) error_die($db, QUERY_ERROR); } -$pagetype = "viewforum"; -$page_title = "View Forum - $forum_name"; -include('page_header.'.$phpEx); - // // Add checking for private forums here!! // @@ -71,6 +67,9 @@ for($x = 0; $x < $db->sql_numrows($result); $x++) $forum_moderators .= ", "; $forum_moderators .= "".$forum_row[$x]["username"].""; } +$pagetype = "viewforum"; +$page_title = "View Forum - $forum_name"; +include('page_header.'.$phpEx); $template->set_block("body", "topicrow", "topics");

  Topic