X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2FWikiError.php;h=7c167f611be4925139cb2a5a205ee8f947c293e6;hb=35c369ec7303b7662accc0ff17182031c6b54a20;hp=6c7406a4455538b157e68586917d40595f3a51f1;hpb=40cfbea9739d905599917383c28ad671eed16d77;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WikiError.php b/includes/WikiError.php index 6c7406a445..7c167f611b 100644 --- a/includes/WikiError.php +++ b/includes/WikiError.php @@ -31,9 +31,11 @@ class WikiError { /** * @param $message string + * + * @deprecated since 1.17 */ function __construct( $message ) { - wfDeprecated( __METHOD__ ); + wfDeprecated( __METHOD__, '1.17' ); $this->mMessage = $message; } @@ -59,9 +61,11 @@ class WikiError { * * @param $object mixed * @return bool + * + * @deprecated since 1.17 */ public static function isError( $object ) { - wfDeprecated( __METHOD__ ); + wfDeprecated( __METHOD__, '1.17' ); if ( $object instanceof WikiError ) { return true; } elseif ( $object instanceof Status ) { @@ -80,9 +84,11 @@ class WikiErrorMsg extends WikiError { /** * @param $message String: wiki message name * @param ... parameters to pass to wfMsg() + * + * @deprecated since 1.17 */ function __construct( $message/*, ... */ ) { - wfDeprecated( __METHOD__ ); + wfDeprecated( __METHOD__, '1.17' ); $args = func_get_args(); array_shift( $args ); $this->mMessage = wfMsgReal( $message, $args, true ); @@ -110,9 +116,11 @@ class WikiXmlError extends WikiError { * @param $message string * @param $context * @param $offset Int + * + * @deprecated since 1.17 */ function __construct( $parser, $message = 'XML parsing error', $context = null, $offset = 0 ) { - wfDeprecated( __METHOD__ ); + wfDeprecated( __METHOD__, '1.17' ); $this->mXmlError = xml_get_error_code( $parser ); $this->mColumn = xml_get_current_column_number( $parser ); $this->mLine = xml_get_current_line_number( $parser );