From: Roan Kattouw Date: Mon, 3 Mar 2008 10:08:55 +0000 (+0000) Subject: API: Make spaces in ucuserprefix actually work X-Git-Tag: 1.31.0-rc.0~49275 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=5fba640b145094b3635c7c4a627c71f95c2f3895;p=lhc%2Fweb%2Fwiklou.git API: Make spaces in ucuserprefix actually work --- diff --git a/includes/api/ApiQueryUserContributions.php b/includes/api/ApiQueryUserContributions.php index ebfd5910d6..1f589e3554 100644 --- a/includes/api/ApiQueryUserContributions.php +++ b/includes/api/ApiQueryUserContributions.php @@ -137,7 +137,7 @@ class ApiQueryContributions extends ApiQueryBase { $this->addWhereFld('rev_deleted', 0); // We only want pages by the specified users. if($this->prefixMode) - $this->addWhere("rev_user_text LIKE '" . $this->getDb()->escapeLike(ApiQueryBase::titleToKey($this->userprefix)) . "%'"); + $this->addWhere("rev_user_text LIKE '" . $this->getDb()->escapeLike($this->userprefix) . "%'"); else $this->addWhereFld( 'rev_user_text', $this->usernames ); // ... and in the specified timeframe.