Index: trunk/phase3/includes/WikiError.php |
— | — | @@ -33,6 +33,7 @@ |
34 | 34 | * @param $message string |
35 | 35 | */ |
36 | 36 | function __construct( $message ) { |
| 37 | + wfDeprecated( __METHOD__ ); |
37 | 38 | $this->mMessage = $message; |
38 | 39 | } |
39 | 40 | |
— | — | @@ -60,6 +61,7 @@ |
61 | 62 | * @return bool |
62 | 63 | */ |
63 | 64 | public static function isError( $object ) { |
| 65 | + wfDeprecated( __METHOD__ ); |
64 | 66 | if ( $object instanceof WikiError ) { |
65 | 67 | return true; |
66 | 68 | } elseif ( $object instanceof Status ) { |
— | — | @@ -80,6 +82,7 @@ |
81 | 83 | * @param ... parameters to pass to wfMsg() |
82 | 84 | */ |
83 | 85 | function __construct( $message/*, ... */ ) { |
| 86 | + wfDeprecated( __METHOD__ ); |
84 | 87 | $args = func_get_args(); |
85 | 88 | array_shift( $args ); |
86 | 89 | $this->mMessage = wfMsgReal( $message, $args, true ); |
— | — | @@ -109,6 +112,7 @@ |
110 | 113 | * @param $offset Int |
111 | 114 | */ |
112 | 115 | function __construct( $parser, $message = 'XML parsing error', $context = null, $offset = 0 ) { |
| 116 | + wfDeprecated( __METHOD__ ); |
113 | 117 | $this->mXmlError = xml_get_error_code( $parser ); |
114 | 118 | $this->mColumn = xml_get_current_column_number( $parser ); |
115 | 119 | $this->mLine = xml_get_current_line_number( $parser ); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -459,6 +459,7 @@ |
460 | 460 | * Partial workaround for bug 6220: at least make files on shared repositories |
461 | 461 | show up as (struck-out) bluelinks instead of redlinks on Special:WantedFiles |
462 | 462 | * rebuildFileCache.php no longer creates inappropriate cache files for redirects |
| 463 | +* (bug 23119) WikiError class and subclasses are now marked as deprecated |
463 | 464 | |
464 | 465 | === API changes in 1.17 === |
465 | 466 | * (bug 22738) Allow filtering by action type on query=logevent. |