diff options
-rw-r--r-- | include/main.php | 5 |
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 |