Silently ignore unknown classes in rcube_autoload (#1487109)

release-0.6
thomascube 14 years ago
parent 6bdb6102c0
commit 965ed0ca7f

@ -1,6 +1,7 @@
CHANGELOG Roundcube Webmail CHANGELOG Roundcube Webmail
=========================== ===========================
- Make rcube_autoload silently skip unknown classes (#1487109)
- Fix charset detection in vcards with encoded values (#1485542) - Fix charset detection in vcards with encoded values (#1485542)
- Better CSS cursors for splitters (#1486874) - Better CSS cursors for splitters (#1486874)
- Show the same message only once (#1487641) - Show the same message only once (#1487641)

@ -105,7 +105,14 @@ function rcube_autoload($classname)
), ),
$classname $classname
); );
include $filename. '.php';
if ($fp = @fopen("$filename.php", 'r', true)) {
fclose($fp);
include_once("$filename.php");
return true;
}
return false;
} }
spl_autoload_register('rcube_autoload'); spl_autoload_register('rcube_autoload');

Loading…
Cancel
Save