API: Improvements to action=emailuser:
[lhc/web/wiklou.git] / includes / api / ApiQueryLinks.php
index 01671b3..1ed0de4 100644 (file)
@@ -76,9 +76,9 @@ class ApiQueryLinks extends ApiQueryGeneratorBase {
                $params = $this->extractRequestParams();
 
                $this->addFields(array (
-                       $this->prefix . '_from pl_from',
-                       $this->prefix . '_namespace pl_namespace',
-                       $this->prefix . '_title pl_title'
+                       $this->prefix . '_from AS pl_from',
+                       $this->prefix . '_namespace AS pl_namespace',
+                       $this->prefix . '_title AS pl_title'
                ));
 
                $this->addTables($this->table);
@@ -92,7 +92,7 @@ class ApiQueryLinks extends ApiQueryGeneratorBase {
                                        "original value returned by the previous query", "_badcontinue");
                        $plfrom = intval($cont[0]);
                        $plns = intval($cont[1]);
-                       $pltitle = $this->getDb()->addQuotes($this->titleToKey($cont[2]));
+                       $pltitle = $this->getDb()->strencode($this->titleToKey($cont[2]));
                        $this->addWhere("{$this->prefix}_from > $plfrom OR ".
                                        "({$this->prefix}_from = $plfrom AND ".
                                        "({$this->prefix}_namespace > $plns OR ".
@@ -192,7 +192,7 @@ class ApiQueryLinks extends ApiQueryGeneratorBase {
        {
                return array(
                                'namespace' => "Show {$this->description}s in this namespace(s) only",
-                               'limit' => 'How many links to return',
+                               'limit' => "How many {$this->description}s to return",
                                'continue' => 'When more results are available, use this to continue',
                );
        }