diff options
author | Remi Collet <fedora@famillecollet.com> | 2012-09-29 09:00:57 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2012-09-29 09:00:57 +0200 |
commit | 578c3f5a2414ee8b216652b5d9ccfbaf4303bf6d (patch) | |
tree | 26a0bc98dabf534764fad72138050f893d308bf5 /include/main.php | |
parent | 249e8b95b24e94a08f3defc8f55b8cda239f5a58 (diff) |
use Smarty2
Diffstat (limited to 'include/main.php')
-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 |