Fix double colons in api help output
authorReedy <reedy@wikimedia.org>
Wed, 30 Jan 2013 19:19:18 +0000 (19:19 +0000)
committerReedy <reedy@wikimedia.org>
Wed, 30 Jan 2013 19:19:18 +0000 (19:19 +0000)
  Get links from the [[Main Page]]::
    api.php?action=query&prop=links&titles=Main%20Page
  Get information about the link pages in the [[Main Page]]::
    api.php?action=query&generator=links&titles=Main%20Page&prop=info
  Get links from the Main Page in the User and Template namespaces::
    api.php?action=query&prop=links&titles=Main%20Page&plnamespace=2|10

Change-Id: I3645bd72d80aef3f99da7f8f5fa1d63a1b28ad78

includes/api/ApiQueryLinks.php

index 138d79b..69d81ae 100644 (file)
@@ -238,9 +238,9 @@ class ApiQueryLinks extends ApiQueryGeneratorBase {
                $desc = $this->description;
                $name = $this->getModuleName();
                return array(
-                       "api.php?action=query&prop={$name}&titles=Main%20Page" => "Get {$desc}s from the [[Main Page]]:",
-                       "api.php?action=query&generator={$name}&titles=Main%20Page&prop=info" => "Get information about the {$desc} pages in the [[Main Page]]:",
-                       "api.php?action=query&prop={$name}&titles=Main%20Page&{$this->prefix}namespace=2|10" => "Get {$desc}s from the Main Page in the User and Template namespaces:",
+                       "api.php?action=query&prop={$name}&titles=Main%20Page" => "Get {$desc}s from the [[Main Page]]",
+                       "api.php?action=query&generator={$name}&titles=Main%20Page&prop=info" => "Get information about the {$desc} pages in the [[Main Page]]",
+                       "api.php?action=query&prop={$name}&titles=Main%20Page&{$this->prefix}namespace=2|10" => "Get {$desc}s from the Main Page in the User and Template namespaces",
                );
        }