diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-04-13 08:52:02 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2012-04-13 08:52:02 +0000 |
| commit | d61fd77d83926d892645a15e00c3443d2a8a6368 (patch) | |
| tree | 83ede4b27294a42a45ee988751f51182994e0de7 /roundcubemail/installer/utils.php | |
| parent | 8a3df3f032059464ebaab2dde26ab0d24b186572 (diff) | |
- Merge devel-framework branch, resolved conflicts
git-svn-id: https://svn.roundcube.net/trunk@6073 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/installer/utils.php')
| -rw-r--r-- | roundcubemail/installer/utils.php | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/roundcubemail/installer/utils.php b/roundcubemail/installer/utils.php index d559df14e..ca2577c14 100644 --- a/roundcubemail/installer/utils.php +++ b/roundcubemail/installer/utils.php @@ -45,26 +45,16 @@ function __autoload($classname) include_once $filename. '.php'; } - -/** - * Fake internal error handler to catch errors - */ -function raise_error($p) -{ - $rci = rcube_install::get_instance(); - $rci->raise_error($p); -} - /** * Local callback function for PEAR errors */ -function rcube_pear_error($err) +function __pear_error($err) { - raise_error(array( + rcmail::raise_error(array( 'code' => $err->getCode(), 'message' => $err->getMessage(), )); } // set PEAR error handling (will also load the PEAR main class) -PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, 'rcube_pear_error'); +PEAR::setErrorHandling(PEAR_ERROR_CALLBACK, '__pear_error'); |
