From: S Page Date: Tue, 27 Nov 2012 05:11:21 +0000 (-0800) Subject: Typo in comment's Example code. X-Git-Tag: 1.31.0-rc.0~21508^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=755d9563c643a5be3508220bcca0e6d0aa86d326 Typo in comment's Example code. Patch 2: fix both comment Examples, rephrase comment, fix a few typos. Change-Id: Id57d9307a3f613445faacdea8c9a4e195ad3987d --- diff --git a/includes/Exception.php b/includes/Exception.php index 714f73e862..f09e8f8ad5 100644 --- a/includes/Exception.php +++ b/includes/Exception.php @@ -500,25 +500,24 @@ class UserBlockedError extends ErrorPageError { /** * Shows a generic "user is not logged in" error page. * - * This is essentially an ErrorPageError exception which by default use the + * This is essentially an ErrorPageError exception which by default uses the * 'exception-nologin' as a title and 'exception-nologin-text' for the message. * @see bug 37627 * @since 1.20 * * @par Example: * @code - * if( $user->isAnon ) { + * if( $user->isAnon() ) { * throw new UserNotLoggedIn(); * } * @endcode * - * Please note the parameters are mixed up compared to ErrorPageError, this - * is done to be able to simply specify a reason whitout overriding the default - * title. + * Note the parameter order differs from ErrorPageError, this allows you to + * simply specify a reason without overriding the default title. * * @par Example: * @code - * if( $user->isAnon ) { + * if( $user->isAnon() ) { * throw new UserNotLoggedIn( 'action-require-loggedin' ); * } * @endcode @@ -533,7 +532,7 @@ class UserNotLoggedIn extends ErrorPageError { * @param $titleMsg A message key to set the page title. * Optional, default: 'exception-nologin' * @param $params Parameters to wfMessage(). - * Optiona, default: null + * Optional, default: null */ public function __construct( $reasonMsg = 'exception-nologin-text',