diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2009-01-21 17:03:00 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2009-01-21 17:03:00 +0000 |
| commit | 9f060eba6eb8f2e54f5c26cc23c4f82eee7903b8 (patch) | |
| tree | fb92caada98efb76568a64d2492b59cd17442934 /phpBB/includes/functions.php | |
| parent | dcd073bb44136ac0d22ade2a5ecf759e7e2ae3bc (diff) | |
| download | forums-9f060eba6eb8f2e54f5c26cc23c4f82eee7903b8.tar forums-9f060eba6eb8f2e54f5c26cc23c4f82eee7903b8.tar.gz forums-9f060eba6eb8f2e54f5c26cc23c4f82eee7903b8.tar.bz2 forums-9f060eba6eb8f2e54f5c26cc23c4f82eee7903b8.tar.xz forums-9f060eba6eb8f2e54f5c26cc23c4f82eee7903b8.zip | |
some adjustements to the installer
git-svn-id: file:///svn/phpbb/trunk@9284 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions.php')
| -rw-r--r-- | phpBB/includes/functions.php | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 1f6e7bcae7..e304edee0c 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -2006,18 +2006,27 @@ function msg_handler($errno, $msg_text, $errfile, $errline) { global $msg_title, $msg_long_text; - // Do not display notices if we suppress them via @ - if (error_reporting() == 0) - { - return; - } - // Message handler is stripping text. In case we need it, we are able to define long text... if (isset($msg_long_text) && $msg_long_text && !$msg_text) { $msg_text = $msg_long_text; } + // Store information for later use + phpbb::$last_notice = array( + 'file' => $errfile, + 'line' => $errline, + 'message' => $msg_text, + 'php_error' => (!empty($php_errormsg)) ? $php_errormsg : '', + 'errno' => $errno, + ); + + // Do not display notices if we suppress them via @ + if (error_reporting() == 0) + { + return; + } + switch ($errno) { case E_NOTICE: |
