From: <sy...@us...> - 2006-10-13 13:39:58
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv21029 Modified Files: Tag: BRANCH-1-9 tiki-install.php Log Message: possibilty to add a param tiki-install.php?lang=ca - next step add the {tr} Index: tiki-install.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-install.php,v retrieving revision 1.62.2.25 retrieving revision 1.62.2.26 diff -u -d -r1.62.2.25 -r1.62.2.26 --- tiki-install.php 3 Sep 2006 16:32:31 -0000 1.62.2.25 +++ tiki-install.php 13 Oct 2006 13:39:55 -0000 1.62.2.26 @@ -26,6 +26,12 @@ $commands = array(); ini_set('magic_quotes_runtime',0); +if (!empty($_REQUEST['lang'])) { + $language = $_REQUEST['lang']; +} else { + $language = 'en'; +} + function process_sql_file($file,$db_tiki) { global $dbTiki; @@ -192,7 +198,6 @@ function fetch($_smarty_tpl_file, $_smarty_cache_id = null, $_smarty_compile_id = null, $_smarty_display = false) { global $language; - $language = 'en'; $_smarty_cache_id = $language . $_smarty_cache_id; $_smarty_compile_id = $language . $_smarty_compile_id; return parent::fetch($_smarty_tpl_file, $_smarty_cache_id, $_smarty_compile_id, $_smarty_display); |