diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2006-01-06 07:48:51 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2006-01-06 07:48:51 +0000 |
commit | a05d3c14d245fa50c4856829112c164eae09130b (patch) | |
tree | 650205f9401a9a3c56379584551b2b4a06289ad5 /phpBB/includes/functions.php | |
parent | ff86c423cf76be1ad7e38195a001747082c4b77a (diff) | |
download | forums-a05d3c14d245fa50c4856829112c164eae09130b.tar forums-a05d3c14d245fa50c4856829112c164eae09130b.tar.gz forums-a05d3c14d245fa50c4856829112c164eae09130b.tar.bz2 forums-a05d3c14d245fa50c4856829112c164eae09130b.tar.xz forums-a05d3c14d245fa50c4856829112c164eae09130b.zip |
making sure coding guidelines are met... ;)
git-svn-id: file:///svn/phpbb/trunk@5431 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r-- | phpBB/includes/functions.php | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 10cbc4f2d2..d360efa7d9 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -1535,16 +1535,19 @@ function msg_handler($errno, $msg_text, $errfile, $errline) { case E_NOTICE: case E_WARNING: + if (defined('DEBUG_EXTRA')) { - if (!strstr($errfile, 'cache') && !strstr($errfile, 'template.php')) + if (strpos($errfile, 'cache') === false && strpos($errfile, 'template.php') === false) { echo "<b>PHP Notice</b>: in file <b>$errfile</b> on line <b>$errline</b>: <b>$msg_text</b><br>"; } } - break; + + break; case E_USER_ERROR: + if (isset($db)) { $db->sql_close(); @@ -1583,14 +1586,14 @@ function msg_handler($errno, $msg_text, $errfile, $errline) echo ' </div>'; echo ' </div>'; echo ' <div id="page-footer">'; - echo ' Powered by phpBB © '.date('Y').' <a href="http://www.phpbb.com/">phpBB Group</a>'; + echo ' Powered by phpBB © ' . date('Y') . ' <a href="http://www.phpbb.com/">phpBB Group</a>'; echo ' </div>'; echo '</div>'; echo '</body>'; echo '</html>'; exit; - break; + break; case E_USER_NOTICE: @@ -1600,6 +1603,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline) { $user->session_begin(); } + if (empty($user->lang)) { $user->setup(); @@ -1642,7 +1646,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline) } exit; - break; + break; } } |