Changeset 215 for trunk/import/update_version.php
- Timestamp:
- Jun 23, 2009, 10:03:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/import/update_version.php
r214 r215 4 4 { 5 5 global $Database, $TranslationTree, $PatchVersion, $Config; 6 echo ('<br /><br />Začínám se synchronizací VersionEnd u přeložených textů<br />'); 7 foreach($TranslationTree as $Group) { 8 echo('<br />'.$Group['Name'].' '); 9 $DbResult = $Database->SQLCommand('SELECT gs_tran.ID, 10 gs_tran.VersionEnd as VersionEnd_tran, 11 gs_orig.VersionEnd as VersionEnd_orig 12 FROM '.$Group['TablePrefix'].' as gs_tran 13 JOIN '.$Group['TablePrefix'].' as gs_orig ON gs_orig.ID = gs_tran.Take 14 WHERE gs_tran.VersionEnd <> gs_orig.VersionEnd'); 15 while ($DbRow = mysql_fetch_assoc($DbResult)) { 16 $Database->SQLCommand('UPDATE '.$Group['TablePrefix'].' SET VersionEnd = '.$DbRow['VersionEnd_orig'].' WHERE ID = '.$DbRow['ID']); 17 echo('. '); 18 } 19 echo('<strong>Dokončeno.</strong>'); 6 7 echo('<br /><br />Začínám se synchronizací VersionEnd u přeložených textů<br />'); 8 foreach($TranslationTree as $Group) 9 { 10 echo('<br />'.$Group['Name'].' '); 11 $DbResult = $Database->SQLCommand('SELECT gs_tran.ID, gs_tran.VersionEnd AS VersionEnd_tran, gs_orig.VersionEnd AS VersionEnd_orig FROM '.$Group['TablePrefix'].' AS gs_tran JOIN '.$Group['TablePrefix'].' AS gs_orig ON gs_orig.ID = gs_tran.Take WHERE gs_tran.VersionEnd <> gs_orig.VersionEnd'); 12 while($DbRow = mysql_fetch_assoc($DbResult)) 13 { 14 $Database->SQLCommand('UPDATE '.$Group['TablePrefix'].' SET VersionEnd = '.$DbRow['VersionEnd_orig'].' WHERE ID = '.$DbRow['ID']); 15 echo('. '); 16 } 17 echo('<strong>Dokončeno.</strong>'); 20 18 } 21 19 }
Note:
See TracChangeset
for help on using the changeset viewer.