From c6b74865fef3298b4c5d867414fdf5a5f22ee704 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Mon, 27 Aug 2012 01:35:03 +0200 Subject: [PATCH] Fix documentation. Change-Id: I43f4ae1248bc4a24cf127fadb6e616da8d4516e2 --- includes/Exception.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/includes/Exception.php b/includes/Exception.php index 25f90e6183..a131cca26e 100644 --- a/includes/Exception.php +++ b/includes/Exception.php @@ -319,13 +319,11 @@ class ErrorPageError extends MWException { public $title, $msg, $params; /** - * @todo document + * Note: these arguments are keys into wfMessage(), not text! * - * Note: these arguments are keys into wfMsg(), not text! - * - * @param $title A title - * @param $msg String|Message . In string form, should be a message key - * @param $params Array Array to wfMessage() + * @param $title string|Message Message key (string) for page title, or a Message object + * @param $msg string|Message Message key (string) for error text, or a Message object + * @param $params array with parameters to wfMessage() */ function __construct( $title, $msg, $params = null ) { $this->title = $title; @@ -356,9 +354,8 @@ class ErrorPageError extends MWException { * @ingroup Exception */ class BadTitleError extends ErrorPageError { - /** - * @param $msg string A message key (default: 'badtitletext') + * @param $msg string|Message A message key (default: 'badtitletext') * @param $params Array parameter to wfMessage() */ function __construct( $msg = 'badtitletext', $params = null ) { -- 2.20.1