From d4b444a0d61cc3b0ab24558ade5763d3048229da Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Thu, 22 Oct 2009 06:18:41 +0000 Subject: [PATCH] Fix syntax errors from r57989 --- includes/api/ApiQueryAllpages.php | 4 ++-- maintenance/namespaceDupes.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/api/ApiQueryAllpages.php b/includes/api/ApiQueryAllpages.php index 558efd4c16..bdae22ecd6 100644 --- a/includes/api/ApiQueryAllpages.php +++ b/includes/api/ApiQueryAllpages.php @@ -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 +} diff --git a/maintenance/namespaceDupes.php b/maintenance/namespaceDupes.php index 0e48a6713d..358285f42e 100644 --- a/maintenance/namespaceDupes.php +++ b/maintenance/namespaceDupes.php @@ -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__ ); -- 2.20.1