]> git.sur5r.net Git - contagged/blobdiff - init.php
PHP5 compatibility and code cleanup
[contagged] / init.php
index 14bd24fdd85058adce9de5ff126a43db133b5e08..b46c6dca9cae1d1deb159a13a8de9c8d6746b0bb 100644 (file)
--- a/init.php
+++ b/init.php
@@ -1,6 +1,6 @@
 <?
   require_once('config.php');
-  require_once('lang/'.$conf[lang].'.php');
+  require_once('lang/'.$conf['lang'].'.php');
   require_once('functions.php');
   require_once('template.php');
   require_once('smarty/Smarty.class.php');
@@ -35,5 +35,5 @@
   $smarty->compile_dir   = './cache';
   $smarty->use_sub_dirs  = 0;
   $smarty->template_dir  = './templates';
-  $smarty->force_compile = $conf[smartycompile];
+  $smarty->force_compile = $conf['smartycompile'];
 ?>