OEmbed: Autoloading

This commit is contained in:
Grischa Brockhaus 2011-12-14 03:20:11 +01:00
parent 348acff01d
commit 97ce51559c

View file

@ -3,7 +3,7 @@ define("PROVIDER_XML", dirname(__FILE__) . '/' . "providers.xml");
define("TEMPLATE_PATH", dirname(__FILE__) . '/' . "templates/");
function __autoload($classname){
if(file_exists($x=$classname.".class.php")) {
if(file_exists($x=dirname(__FILE__) . '/' .$classname.".class.php")) {
require_once($x);
}
}