diff --git a/phpBB/includes/constants.php b/phpBB/includes/constants.php
index 935ed37771..8f4ba92153 100644
--- a/phpBB/includes/constants.php
+++ b/phpBB/includes/constants.php
@@ -27,8 +27,8 @@
//
// Debug Level
-//define(DEBUG, 1); // Debugging on
-define(DEBUG, 0); // Debugging off
+define(DEBUG, 1); // Debugging on
+//define(DEBUG, 0); // Debugging off
// User Levels <- Do not change the values of USER or ADMIN
define(DELETED, -1);
diff --git a/phpBB/includes/message.php b/phpBB/includes/message.php
index 5779192834..58a0df3db1 100644
--- a/phpBB/includes/message.php
+++ b/phpBB/includes/message.php
@@ -86,42 +86,42 @@ function message_die($msg_code, $msg_text = "", $msg_title = "", $err_line = "",
break;
case SQL_CONNECT:
- $msg_title = $lang['General_error'];
+ $msg_title = $lang['General_Error'];
$msg_text = $lang['Error_database_connect'];
break;
case SQL_QUERY:
- if(!$msg_text)
+ if($msg_text == "")
{
$msg_text = $lang['An_error_occured'];
}
- if(!$msg_title)
+ if($msg_title == "")
{
- $msg_title = $lang['General_error'];
+ $msg_title = $lang['General_Error'];
}
break;
case SESSION_CREATE:
- $msg_title = $lang['General_error'];
+ $msg_title = $lang['General_Error'];
$msg_text = $lang['Error_session'];
break;
case GENERAL_ERROR:
- if(!$msg_text)
+ if($msg_text == "")
{
$msg_text = $lang['An_error_occured'];
}
- if(!$msg_title)
+ if($msg_title == "")
{
- $msg_title = $lang['General_error'];
+ $msg_title = $lang['General_Error'];
}
break;
}
if(DEBUG)
{
- if($line != "" && $file != "" && $msg_code != GENERAL_MESSAGE)
+ if($err_line != "" && $err_file != "")
{
- $msg_text .= "
DEBUG INFO
Line: " . $err_line . "
File: " . $file;
+ $msg_text .= "
DEBUG INFO
Line : " . $err_line . "
File : " . $err_file;
}
}
diff --git a/phpBB/language/lang_english.php b/phpBB/language/lang_english.php
index 604550e668..589746d4b4 100755
--- a/phpBB/language/lang_english.php
+++ b/phpBB/language/lang_english.php
@@ -79,6 +79,7 @@ $lang['Next'] = "Next";
$lang['Previous'] = "Previous";
$lang['Goto_page'] = "Goto page";
$lang['Page'] = "Page"; // Followed by the current page number then 'of x' where x is total pages
+$lang['Pages'] = "Pages";
$lang['of'] = "of"; // See Page above
$lang['Go'] = "Go";
@@ -323,6 +324,7 @@ $lang['You_been_banned'] = "You have been banned from this forum
Please conta
$lang['No_topics_post_one'] = "There are no posts in this forum
Click on the Post New Topic link on this page to post one";
$lang['General_Error'] = "General Error";
+$lang['An_error_occured'] = "An Error Occured";
$lang['Error_database_connect'] = "Could not connect to database
Please check your configuration settings";
$lang['Error_session'] = "Error creating session
Could not log you in, please go back and try again";
$lang['Error_login'] = "Login Failed
You have specified an incorrect/inactive username or invalid password, please go back and try again";
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 5c573deb41..51cb796bce 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -154,11 +154,11 @@ if(!$result = $db->sql_query($sql))
if(DEBUG)
{
$dberror = $db->sql_error();
- message_die(SQL_QUERY, "Couldn't obtain topic information.
Reason: ".$dberror['message']."
Query: $sql", "", __LINE__, __FILE__);
+ message_die(SQL_QUERY, "Couldn't obtain topic information
DEBUG INFO
Reason : " . $dberror['message'] . "
Query : $sql
File : " . __FILE__ . "
Line : " . __LINE__ . "
", "");
}
else
{
- message_die(GENERAL_MESSAGE, $lang['Topic_post_not_exist']);
+ message_die(GENERAL_MESSAGE, $lang['Topic_post_not_exist']);
}
}
@@ -178,7 +178,7 @@ if(!$total_rows = $db->sql_numrows($result))
if(DEBUG)
{
$error = $db->sql_error();
- message_die(GENERAL_ERROR, "The forum/topic you selected does not exist.
Reason: ".$error['message']."
Query: $sql", "", __LINE__, __FILE__);
+ message_die(GENERAL_ERROR, "The forum/topic you selected does not exist
DEBUG INFO
Reason : " . $error['message'] . "
Query : $sql
File : " . __FILE__ . "
Line : " . __LINE__ . "
", "");
}
else
{