summaryrefslogtreecommitdiffstats
path: root/include/main.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/main.php')
-rw-r--r--include/main.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/main.php b/include/main.php
index 5938618..5b66836 100644
--- a/include/main.php
+++ b/include/main.php
@@ -38,7 +38,7 @@ define('RPMPHP_VERSION', '1.0.0-dev');
require 'config.php';
if (!defined('CLIONLY')) {
- include 'Smarty/Smarty.class.php';
+ include 'Smarty2/Smarty.class.php';
$smarty = new Smarty();
@@ -60,9 +60,10 @@ if (!defined('CLIONLY')) {
*
* @return void
*/
-function __autoload($classname)
+function my_autoload($classname)
{
include dirname(__FILE__).'/../class/'.$classname.'.php';
}
+spl_autoload_register("my_autoload");
?> \ No newline at end of file