From: Alexandre Emsenhuber Date: Mon, 6 Dec 2010 10:09:43 +0000 (+0000) Subject: * (bug 23119) WikiError class and subclasses are now marked as deprecated X-Git-Tag: 1.31.0-rc.0~33529 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/comptes/?a=commitdiff_plain;h=40cfbea9739d905599917383c28ad671eed16d77;p=lhc%2Fweb%2Fwiklou.git * (bug 23119) WikiError class and subclasses are now marked as deprecated Last usage from those classes in core was removed in r77800. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index b50d437ac7..c16776b6e8 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -459,6 +459,7 @@ LocalSettings.php. The specific bugs are listed below in the general notes. * Partial workaround for bug 6220: at least make files on shared repositories show up as (struck-out) bluelinks instead of redlinks on Special:WantedFiles * rebuildFileCache.php no longer creates inappropriate cache files for redirects +* (bug 23119) WikiError class and subclasses are now marked as deprecated === API changes in 1.17 === * (bug 22738) Allow filtering by action type on query=logevent. diff --git a/includes/WikiError.php b/includes/WikiError.php index 452554c32a..6c7406a445 100644 --- a/includes/WikiError.php +++ b/includes/WikiError.php @@ -33,6 +33,7 @@ class WikiError { * @param $message string */ function __construct( $message ) { + wfDeprecated( __METHOD__ ); $this->mMessage = $message; } @@ -60,6 +61,7 @@ class WikiError { * @return bool */ public static function isError( $object ) { + wfDeprecated( __METHOD__ ); if ( $object instanceof WikiError ) { return true; } elseif ( $object instanceof Status ) { @@ -80,6 +82,7 @@ class WikiErrorMsg extends WikiError { * @param ... parameters to pass to wfMsg() */ function __construct( $message/*, ... */ ) { + wfDeprecated( __METHOD__ ); $args = func_get_args(); array_shift( $args ); $this->mMessage = wfMsgReal( $message, $args, true ); @@ -109,6 +112,7 @@ class WikiXmlError extends WikiError { * @param $offset Int */ function __construct( $parser, $message = 'XML parsing error', $context = null, $offset = 0 ) { + wfDeprecated( __METHOD__ ); $this->mXmlError = xml_get_error_code( $parser ); $this->mColumn = xml_get_current_column_number( $parser ); $this->mLine = xml_get_current_line_number( $parser );