Changeset 200 for trunk/export/create_addon.php
- Timestamp:
- Jun 9, 2009, 8:04:54 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/export/create_addon.php
r193 r200 73 73 function MakeLanguageFiles($Setting) 74 74 { 75 global $Database, $TempDir, $TranslationTree, $CreatedFileList ;75 global $Database, $TempDir, $TranslationTree, $CreatedFileList, $LanguageList; 76 76 77 77 $CreatedFileList = array(); … … 79 79 80 80 $WhereLang = ''; 81 if($Setting['language-cz']) $WhereLang .= " OR (Language = 1)";82 if($Setting['language-sk']) $WhereLang .= " OR (Language = 2)";83 if($Setting['language-other']) $WhereLang .= " OR (Language = 3)";81 foreach($LanguageList as $Language) 82 if($Language['Enabled'] == 1) 83 if(isset($Setting['language'.$Language['Id']])) $WhereLang .= ' OR (Language = '.$Language['Id'].')'; 84 84 if($WhereLang == '') $WhereLang = 1; 85 85 else $WhereLang = '('.substr($WhereLang, 4).')'; … … 149 149 function MakeClientStrings($Setting) 150 150 { 151 global $Database, $TempDir, $TranslationTree ;151 global $Database, $TempDir, $TranslationTree, $LanguageList; 152 152 153 153 $WhereLang = ''; 154 if($Setting['language-cz']) $WhereLang .= " OR (Language = 1)";155 if($Setting['language-sk']) $WhereLang .= " OR (Language = 2)";156 if($Setting['language-other']) $WhereLang .= " OR (Language = 3)";154 foreach($LanguageList as $Language) 155 if($Language['Enabled'] == 1) 156 if(isset($Setting['language'.$Language['Id']])) $WhereLang .= ' OR (Language = '.$Language['Id'].')'; 157 157 if($WhereLang == '') $WhereLang = 1; 158 158 else $WhereLang = '('.substr($WhereLang, 4).')'; … … 632 632 '; 633 633 $ID = $Database->SQLCommand('SELECT * FROM verseclient ORDER BY DATE DESC'); 634 while($Line = mysql_fetch_assoc($ID)) { 635 $Buffer .=' 634 while($Line = mysql_fetch_assoc($ID)) 635 { 636 $Buffer .=' 636 637 Verze: '.$Line['verse'].' 637 638 =============
Note:
See TracChangeset
for help on using the changeset viewer.