]> git.wh0rd.org Git - tt-rss.git/blob - include/autoload.php
Merge pull request #399 from pavel-voronin/patch-1
[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 ?>