(bug 20275) Fixed LIKE queries on SQLite backend
[lhc/web/wiklou.git] / includes / specials / SpecialMovepage.php
index 6ee29cc..ed5d03c 100644 (file)
@@ -416,7 +416,7 @@ class MovePageForm {
                        )
                ) ) {
                        $conds = array(
-                               'page_title LIKE '.$dbr->addQuotes( $dbr->escapeLike( $ot->getDBkey() ) . '/%' )
+                               'page_title' . $dbr->buildLike( $ot->getDBkey() . '/', $dbr->anyString() )
                                        .' OR page_title = ' . $dbr->addQuotes( $ot->getDBkey() )
                        );
                        $conds['page_namespace'] = array();