Make autoloading of the framework classes work from any location

pull/15/head^2
Thomas Bruederli 12 years ago
parent eafb68b321
commit e4394c95e0

@ -470,17 +470,17 @@ function rcube_autoload($classname)
'/Mail_(.+)/', '/Mail_(.+)/',
'/Net_(.+)/', '/Net_(.+)/',
'/Auth_(.+)/', '/Auth_(.+)/',
'/^utf8$/',
'/^html_.+/', '/^html_.+/',
'/^rcube(.*)/', '/^rcube(.*)/',
'/^utf8$/',
), ),
array( array(
'Mail/\\1', 'Mail/\\1',
'Net/\\1', 'Net/\\1',
'Auth/\\1', 'Auth/\\1',
'Roundcube/html',
'Roundcube/rcube\\1',
'utf8.class', 'utf8.class',
RCUBE_LIB_DIR . '/html',
RCUBE_LIB_DIR . '/rcube\\1',
), ),
$classname $classname
); );

Loading…
Cancel
Save