summaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2012-04-13 08:52:02 +0000
committeralecpl <alec@alec.pl>2012-04-13 08:52:02 +0000
commit0c259682f65eaaf23ea4ccb56a706d6baf3007e4 (patch)
treef1491f39189c8a970e7612b9dcc20f9409d7361e /installer
parentce64332e7a9bf2468eabdb4b789270aebb3e7dc7 (diff)
- Merge devel-framework branch, resolved conflicts
Diffstat (limited to 'installer')
-rw-r--r--installer/index.php2
-rw-r--r--installer/utils.php16
2 files changed, 5 insertions, 13 deletions
diff --git a/installer/index.php b/installer/index.php
index 65e84a3b4..842b90054 100644
--- a/installer/index.php
+++ b/installer/index.php
@@ -53,6 +53,8 @@ $include_path .= ini_get('include_path');
set_include_path($include_path);
require_once 'utils.php';
+require_once 'rcube_shared.inc';
+// deprecated aliases (to be removed)
require_once 'main.inc';
session_start();
diff --git a/installer/utils.php b/installer/utils.php
index d559df14e..ca2577c14 100644
--- a/installer/utils.php
+++ b/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');