From: Reedy Date: Wed, 30 Jan 2013 19:19:18 +0000 (+0000) Subject: Fix double colons in api help output X-Git-Tag: 1.31.0-rc.0~20856^2 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=bb9241b54f3ccead9bf0a718533f06a9c6630ce7;p=lhc%2Fweb%2Fwiklou.git Fix double colons in api help output 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 --- diff --git a/includes/api/ApiQueryLinks.php b/includes/api/ApiQueryLinks.php index 138d79b201..69d81ae365 100644 --- a/includes/api/ApiQueryLinks.php +++ b/includes/api/ApiQueryLinks.php @@ -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", ); }