Fix syntax errors from r57989
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 22 Oct 2009 06:18:41 +0000 (06:18 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 22 Oct 2009 06:18:41 +0000 (06:18 +0000)
includes/api/ApiQueryAllpages.php
maintenance/namespaceDupes.php

index 558efd4..bdae22e 100644 (file)
@@ -65,7 +65,7 @@ class ApiQueryAllpages extends ApiQueryGeneratorBase {
                $from = (is_null($params['from']) ? null : $this->titlePartToKey($params['from']));
                $this->addWhereRange('page_title', $dir, $from, null);
                if (isset ($params['prefix']))
-                       $this->addWhere('page_title' . $db->buildLike($this->titlePartToKey($params['prefix']), $db->->anyString()));
+                       $this->addWhere('page_title' . $db->buildLike($this->titlePartToKey($params['prefix']), $db->anyString()));
 
                if (is_null($resultPageSet)) {
                        $selectFields = array (
@@ -270,4 +270,4 @@ class ApiQueryAllpages extends ApiQueryGeneratorBase {
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
-}
\ No newline at end of file
+}
index 0e48a67..358285f 100644 (file)
@@ -211,7 +211,7 @@ class NamespaceConflictChecker extends Maintenance {
                               $titleSql     AS title
                          FROM {$table}
                         WHERE {$page}_namespace=0
-                          AND {$page}_title " . $this->db->buildLike( $name . ':', $this-db->anyString() );
+                          AND {$page}_title " . $this->db->buildLike( $name . ':', $this->db->anyString() );
 
                $result = $this->db->query( $sql, __METHOD__ );