From 578c3f5a2414ee8b216652b5d9ccfbaf4303bf6d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Sat, 29 Sep 2012 09:00:57 +0200 Subject: use Smarty2 --- include/main.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') 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 -- cgit