tt-rss/include/autoload.php
2017-04-26 20:24:18 +03:00

13 行
EOLなし
252 B
PHP

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