From: Niklas Laxström Date: Thu, 22 Oct 2009 06:18:41 +0000 (+0000) Subject: Fix syntax errors from r57989 X-Git-Tag: 1.31.0-rc.0~39190 X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=commitdiff_plain;h=d4b444a0d61cc3b0ab24558ade5763d3048229da;p=lhc%2Fweb%2Fwiklou.git Fix syntax errors from r57989 --- 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__ );