Allow smarty directory customization
[squasher.git] / index.php
index dfcc4689205efd4de0a1b232a728ce76c849793a..372fcd7117b0371b904b6a6959ff2ad232bcdd23 100644 (file)
--- a/index.php
+++ b/index.php
@@ -23,9 +23,7 @@ if ($_SESSION['creds']['validated'] || @$_GET['f']) {
 } else {
        //show login
 
-       require_once(SQUASHER_SMARTY); // See config.php
-
-       $smarty = new Smarty;
+       $smarty = get_smarty();
 
        $smarty->assign('salt', $salt);
        $smarty->assign('debug', @$_GET['debug']);