summaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-06-13 18:55:50 +0000
committeralecpl <alec@alec.pl>2011-06-13 18:55:50 +0000
commit7479c1d63c1a0a7139ad42a976d3ce3b61d21aef (patch)
tree7be67e86c910dffa603fb22dd8807262d7928e2f /installer
parent64867411b118f23a03926812625c1fa6837de5ce (diff)
- Fix autoloading of Auth_SASL classes in Installer
Diffstat (limited to 'installer')
-rw-r--r--installer/utils.php30
1 files changed, 22 insertions, 8 deletions
diff --git a/installer/utils.php b/installer/utils.php
index fd7e93bec..b08a118a5 100644
--- a/installer/utils.php
+++ b/installer/utils.php
@@ -33,12 +33,26 @@
*/
function __autoload($classname)
{
- $filename = preg_replace(
- array('/MDB2_(.+)/', '/Mail_(.+)/', '/Net_(.+)/', '/^html_.+/', '/^utf8$/'),
- array('MDB2/\\1', 'Mail/\\1', 'Net/\\1', 'html', 'utf8.class'),
- $classname
- );
- include_once $filename. '.php';
+ $filename = preg_replace(
+ array(
+ '/MDB2_(.+)/',
+ '/Mail_(.+)/',
+ '/Net_(.+)/',
+ '/Auth_(.+)/',
+ '/^html_.+/',
+ '/^utf8$/'
+ ),
+ array(
+ 'MDB2/\\1',
+ 'Mail/\\1',
+ 'Net/\\1',
+ 'Auth/\\1',
+ 'html',
+ 'utf8.class'
+ ),
+ $classname
+ );
+ include_once $filename. '.php';
}
@@ -47,6 +61,6 @@ function __autoload($classname)
*/
function raise_error($p)
{
- $rci = rcube_install::get_instance();
- $rci->raise_error($p);
+ $rci = rcube_install::get_instance();
+ $rci->raise_error($p);
}