tt-rss/include/autoload.php
2013-04-17 15:36:48 +04:00

12 righe
224 B
PHP

<?php
function __autoload($class) {
$class_file = str_replace("_", "/", strtolower(basename($class)));
$file = dirname(__FILE__)."/../classes/$class_file.php";
if (file_exists($file)) {
require $file;
}
}
?>