OEmbed: Autoloading
This commit is contained in:
parent
348acff01d
commit
97ce51559c
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue