tt-rss/include/autoload.php

13 lines
252 B
PHP
Raw Normal View History

2013-04-17 13:36:34 +02:00
<?php
2013-04-24 07:05:56 +02:00
require_once "functions.php";
2013-04-17 13:36:34 +02:00
function __autoload($class) {
$class_file = str_replace("_", "/", strtolower(basename($class)));
$file = dirname(__FILE__)."/../classes/$class_file.php";
if (file_exists($file)) {
require $file;
}
2017-04-26 19:24:18 +02:00
}