Permalink
Browse files

- Fix autoloading of Auth_SASL classes in Installer

  • Loading branch information...
1 parent 6486741 commit 7479c1d63c1a0a7139ad42a976d3ce3b61d21aef @alecpl alecpl committed Jun 13, 2011
Showing with 22 additions and 8 deletions.
  1. +22 −8 installer/utils.php
View
@@ -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);
}

0 comments on commit 7479c1d

Please sign in to comment.