Changeset 661
- Timestamp:
- 08/14/2011 03:17:57 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/wp/transposh_db.php
r660 r661 811 811 $row->original = $GLOBALS['wpdb']->escape($row->original); 812 812 $row->lang = $GLOBALS['wpdb']->escape($row->lang); 813 list($source, $tran lation) = $this->fetch_translation($row->original, $row->lang);813 list($source, $translation) = $this->fetch_translation($row->original, $row->lang); 814 814 if ($source != NULL) { 815 $delvalues = "(original ='{$row->original}' AND lang='{$row->lang}' ";815 $delvalues = "(original ='{$row->original}' AND lang='{$row->lang}')"; 816 816 $update = "DELETE FROM " . $this->translation_table . " WHERE $delvalues"; 817 817 logger($update, 3); 818 818 $result = $GLOBALS['wpdb']->query($update); 819 }820 $row->translated = $GLOBALS['wpdb']->escape($translation);821 $row->source = $GLOBALS['wpdb']->escape($source);822 $values = "('{$row->original}','{$row->lang}','{$row->translated}','$row->source')";823 $update = "INSERT INTO " . $this->translation_table . " (original, lang, translated, source) VALUES $values";824 logger($update, 3);825 $result = $GLOBALS['wpdb']->query($update);819 $row->translated = $GLOBALS['wpdb']->escape($translation); 820 $row->source = $GLOBALS['wpdb']->escape($source); 821 $values = "('{$row->original}','{$row->lang}','{$row->translated}','$row->source')"; 822 $update = "INSERT INTO " . $this->translation_table . " (original, lang, translated, source) VALUES $values"; 823 logger($update, 3); 824 $result = $GLOBALS['wpdb']->query($update); 825 } 826 826 $this->cache_delete($row->original, $row->lang); 827 827 }
Note: See TracChangeset
for help on using the changeset viewer.
