- Fix autoloading of Auth_SASL classes in Installer

release-0.6
alecpl 14 years ago
parent 64867411b1
commit 7479c1d63c

@ -33,12 +33,26 @@
*/ */
function __autoload($classname) function __autoload($classname)
{ {
$filename = preg_replace( $filename = preg_replace(
array('/MDB2_(.+)/', '/Mail_(.+)/', '/Net_(.+)/', '/^html_.+/', '/^utf8$/'), array(
array('MDB2/\\1', 'Mail/\\1', 'Net/\\1', 'html', 'utf8.class'), '/MDB2_(.+)/',
$classname '/Mail_(.+)/',
); '/Net_(.+)/',
include_once $filename. '.php'; '/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) function raise_error($p)
{ {
$rci = rcube_install::get_instance(); $rci = rcube_install::get_instance();
$rci->raise_error($p); $rci->raise_error($p);
} }

Loading…
Cancel
Save