Index: trunk/phase3/maintenance/namespaceDupes.php |
— | — | @@ -203,7 +203,7 @@ |
204 | 204 | $titleSql = "TRIM(LEADING '$prefix:' FROM {$page}_title)"; |
205 | 205 | if( $ns == 0 ) { |
206 | 206 | // An interwiki; try an alternate encoding with '-' for ':' |
207 | | - $titleSql = "CONCAT('$prefix-',$titleSql)"; |
| 207 | + $titleSql = $this->db->buildConcat( array( "'$prefix-'", $titleSql ) ); |
208 | 208 | } |
209 | 209 | |
210 | 210 | $sql = "SELECT {$page}_id AS id, |
— | — | @@ -214,7 +214,7 @@ |
215 | 215 | WHERE {$page}_namespace=0 |
216 | 216 | AND {$page}_title LIKE '$likeprefix:%'"; |
217 | 217 | |
218 | | - $result = $this->db->query( $sql, 'NamespaceConflictChecker::getConflicts' ); |
| 218 | + $result = $this->db->query( $sql, __METHOD__ ); |
219 | 219 | |
220 | 220 | $set = array(); |
221 | 221 | while( $row = $this->db->fetchObject( $result ) ) { |