From: <ex...@us...> - 2013-07-18 14:18:02
|
Revision: 6101 http://sourceforge.net/p/web-erp/reponame/6101 Author: exsonqu Date: 2013-07-18 14:18:00 +0000 (Thu, 18 Jul 2013) Log Message: ----------- 07/18/2013 Exson: fixed the LanguageSetup.php extra language mark introduced by handle locale number. Reported by Tim. Modified Paths: -------------- trunk/includes/LanguageSetup.php Modified: trunk/includes/LanguageSetup.php =================================================================== --- trunk/includes/LanguageSetup.php 2013-07-18 14:14:58 UTC (rev 6100) +++ trunk/includes/LanguageSetup.php 2013-07-18 14:18:00 UTC (rev 6101) @@ -39,13 +39,8 @@ } } +echo '<input type="hidden" name="Lang" id="Lang" value="'.$Lang.'" />'; -?> -<script type="text/javascript"> -Lang = <?php echo json_encode($Lang); ?>; -</script> -<?php - /*Since LanguagesArray requires the function _() to translate the language names - we must provide a substitute if it doesn't exist aready before we include includes/LanguagesArray.php * */ if (!function_exists('gettext')) { |