Index: trunk/extensions/Wikidata/util/copy.php |
— | — | @@ -107,9 +107,10 @@ |
108 | 108 | } |
109 | 109 | |
110 | 110 | protected function identical() { |
| 111 | + var_dump($this->object); |
111 | 112 | $uuid=mysql_escape_string($this->object["UUID"]); |
112 | 113 | $dc2=$this->dc2; |
113 | | - return getrow($dc2,"objects", "WHERE `uuid`='$uuid'"); |
| 114 | + return getrow($dc2, "objects", "WHERE `UUID`='$uuid'"); |
114 | 115 | } |
115 | 116 | |
116 | 117 | function write() { |
— | — | @@ -203,10 +204,10 @@ |
204 | 205 | function dupSyntrans($dc1, $dc2, $olddmid, $oldexpid, $newdmid, $newexpid) { |
205 | 206 | $syntrans=getOldSyntrans($dc1, $olddmid, $oldexpid); |
206 | 207 | $copier=new ObjectCopier($syntrans["syntrans_sid"], "syntrans", $dc1, $dc2); |
| 208 | + $newid=$copier->dup(); |
207 | 209 | if ($copier->already_there()) { |
208 | 210 | return; |
209 | 211 | } |
210 | | - $newid=$copier->dup(); |
211 | 212 | $syntrans["syntrans_sid"]=$newid; |
212 | 213 | writeSyntrans($syntrans, $newdmid, $newexpid, $dc2); |
213 | 214 | } |
— | — | @@ -271,8 +272,7 @@ |
272 | 273 | |
273 | 274 | function dup_translated_content($dc1, $dc2, $tcid) { |
274 | 275 | $translated_content=read_translated_content($dc1, $tcid); |
275 | | - $target_table=mysql_real_escape_string("translated_content"); |
276 | | - $copier=new ObjectCopier($tcid, $target_table, $dc1, $dc2); |
| 276 | + $copier=new ObjectCopier($tcid, "translated_content", $dc1, $dc2); |
277 | 277 | $new_tcid=$copier->dup(); |
278 | 278 | # note the issue where translated content is added later: |
279 | 279 | # since all translated content for a single dm |