API: Make spaces in ucuserprefix actually work
authorRoan Kattouw <catrope@users.mediawiki.org>
Mon, 3 Mar 2008 10:08:55 +0000 (10:08 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Mon, 3 Mar 2008 10:08:55 +0000 (10:08 +0000)
includes/api/ApiQueryUserContributions.php

index ebfd591..1f589e3 100644 (file)
@@ -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.