Index: trunk/extensions/Translate/scripts/fuzzy.php |
— | — | @@ -101,7 +101,7 @@ |
102 | 102 | foreach ( $this->titles as $title ) { |
103 | 103 | $title = TranslateUtils::title( $title, '' ); |
104 | 104 | $title = str_replace( ' ', '_', $title ); |
105 | | - $search_titles[] = "page_title LIKE '{$dbr->escapeLike( $title )}%%'"; |
| 105 | + $search_titles[] = 'page_title ' . $dbr->buildLike( $title, $dbr->anyString() ); |
106 | 106 | } |
107 | 107 | |
108 | 108 | $condArray = array( |
Index: trunk/extensions/Translate/utils/MessageWebImporter.php |
— | — | @@ -345,13 +345,11 @@ |
346 | 346 | // Work on all subpages of base title. |
347 | 347 | $titleText = $title->getBaseText(); |
348 | 348 | |
349 | | - $namespace = $title->getNamespace(); |
350 | | - $titleText = $dbw->escapeLike( $titleText ); |
351 | 349 | $conds = array( |
352 | | - 'page_namespace' => $namespace, |
| 350 | + 'page_namespace' => $title->getNamespace(), |
353 | 351 | 'page_latest=rev_id', |
354 | 352 | 'rev_text_id=old_id', |
355 | | - 'page_title LIKE \'' . $titleText . '\/%\'' |
| 353 | + 'page_title ' . $dbw->buildLike( "$titleText/", $dbw->anyString() ), |
356 | 354 | ); |
357 | 355 | |
358 | 356 | $rows = $dbw->select( |
Index: trunk/extensions/Translate/SpecialTranslations.php |
— | — | @@ -127,7 +127,7 @@ |
128 | 128 | array( 'page_namespace', 'page_title' ), |
129 | 129 | array( |
130 | 130 | 'page_namespace' => $namespace, |
131 | | - 'page_title LIKE \'' . $dbr->escapeLike( $message ) . '\/%\'', |
| 131 | + 'page_title ' . $dbr->buildLike( "$message/", $dbr->anyString() ), |
132 | 132 | ), |
133 | 133 | __METHOD__, |
134 | 134 | array( |