r104856 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r104855‎ | r104856 | r104857 >
Date:14:40, 1 December 2011
Author:petrb
Status:deferred
Tags:
Comment:
updated text in api
Modified paths:
  • /trunk/extensions/OnlineStatusBar/OnlineStatusBar.api.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OnlineStatusBar/OnlineStatusBar.api.php
@@ -33,11 +33,12 @@
3434 null, $this->getModuleName(), array( 'result' => $ret ) );
3535 } else
3636 {
37 - $this->dieUsage( "You provided invalid user." );
 37+ $this->dieUsage( "You provided an invalid user." );
3838 }
3939 }
4040
4141 public function getAllowedParams() {
 42+ // params
4243 return array(
4344 'user' => null,
4445 );
@@ -45,7 +46,7 @@
4647
4748 public function getParamDescription() {
4849 return array(
49 - 'user' => 'Username of user you want to get status of',
 50+ 'user' => 'Username of user of which you want to get status',
5051 );
5152 }
5253
@@ -61,7 +62,7 @@
6263
6364 public function getExamples() {
6465 return array(
65 - 'api.php?action=query&list=onlinestatus&onlinestatususer=Petrb',
 66+ 'api.php?action=query&prop=onlinestatus&onlinestatususer=Petrb',
6667 );
6768 }
6869

Status & tagging log