]> git.wh0rd.org - tt-rss.git/blob - include/autoload.php
Updated cache_images() to use _MIN_CACHE_IMAGE_SIZE constant when checking file size...
[tt-rss.git] / include / autoload.php
1 <?php
2 require_once "functions.php";
3
4 function __autoload($class) {
5 $class_file = str_replace("_", "/", strtolower(basename($class)));
6
7 $file = dirname(__FILE__)."/../classes/$class_file.php";
8
9 if (file_exists($file)) {
10 require $file;
11 }
12
13 }
14 ?>