ApiBase::dieUsageMsg() now also accept being given a single element as a string.
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 14 May 2011 11:19:59 +0000 (11:19 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 14 May 2011 11:19:59 +0000 (11:19 +0000)
commit391284b75ce3eda69c02172d7711dd83cf93cd3c
treea2e9265f765363b37d1a80dfe489f167c9f4296b
parentce724622159c923a1fde82d19ab18476964876c0
ApiBase::dieUsageMsg() now also accept being given a single element as a string.

So the old:
  $api->dieUsageMsg( array( 'nologging' ) );

Can now be written:
  $api->dieUsageMsg( 'nologging' );

Saves up a few keystrokes.
includes/api/ApiBase.php