@@ 181-190 (lines=10) @@ | ||
178 | $lang = $this->languageFromParam( $lang ); |
|
179 | ||
180 | $rawErrors = $this->getErrors(); |
|
181 | if ( count( $rawErrors ) == 0 ) { |
|
182 | if ( $this->isOK() ) { |
|
183 | $this->fatal( 'internalerror_info', |
|
184 | __METHOD__ . " called for a good result, this is incorrect\n" ); |
|
185 | } else { |
|
186 | $this->fatal( 'internalerror_info', |
|
187 | __METHOD__ . ": Invalid result object: no error text but not OK\n" ); |
|
188 | } |
|
189 | $rawErrors = $this->getErrors(); // just added a fatal |
|
190 | } |
|
191 | if ( count( $rawErrors ) == 1 ) { |
|
192 | $s = $this->getErrorMessage( $rawErrors[0], $lang )->plain(); |
|
193 | if ( $shortContext ) { |
|
@@ 237-246 (lines=10) @@ | ||
234 | $lang = $this->languageFromParam( $lang ); |
|
235 | ||
236 | $rawErrors = $this->getErrors(); |
|
237 | if ( count( $rawErrors ) == 0 ) { |
|
238 | if ( $this->isOK() ) { |
|
239 | $this->fatal( 'internalerror_info', |
|
240 | __METHOD__ . " called for a good result, this is incorrect\n" ); |
|
241 | } else { |
|
242 | $this->fatal( 'internalerror_info', |
|
243 | __METHOD__ . ": Invalid result object: no error text but not OK\n" ); |
|
244 | } |
|
245 | $rawErrors = $this->getErrors(); // just added a fatal |
|
246 | } |
|
247 | if ( count( $rawErrors ) == 1 ) { |
|
248 | $s = $this->getErrorMessage( $rawErrors[0], $lang ); |
|
249 | if ( $shortContext ) { |