|
@@ 221-230 (lines=10) @@
|
| 218 |
|
$lang = $this->languageFromParam( $lang ); |
| 219 |
|
|
| 220 |
|
$rawErrors = $this->sv->getErrors(); |
| 221 |
|
if ( count( $rawErrors ) == 0 ) { |
| 222 |
|
if ( $this->sv->isOK() ) { |
| 223 |
|
$this->sv->fatal( 'internalerror_info', |
| 224 |
|
__METHOD__ . " called for a good result, this is incorrect\n" ); |
| 225 |
|
} else { |
| 226 |
|
$this->sv->fatal( 'internalerror_info', |
| 227 |
|
__METHOD__ . ": Invalid result object: no error text but not OK\n" ); |
| 228 |
|
} |
| 229 |
|
$rawErrors = $this->sv->getErrors(); // just added a fatal |
| 230 |
|
} |
| 231 |
|
if ( count( $rawErrors ) == 1 ) { |
| 232 |
|
$s = $this->getErrorMessage( $rawErrors[0], $lang )->plain(); |
| 233 |
|
if ( $shortContext ) { |
|
@@ 277-286 (lines=10) @@
|
| 274 |
|
$lang = $this->languageFromParam( $lang ); |
| 275 |
|
|
| 276 |
|
$rawErrors = $this->sv->getErrors(); |
| 277 |
|
if ( count( $rawErrors ) == 0 ) { |
| 278 |
|
if ( $this->sv->isOK() ) { |
| 279 |
|
$this->sv->fatal( 'internalerror_info', |
| 280 |
|
__METHOD__ . " called for a good result, this is incorrect\n" ); |
| 281 |
|
} else { |
| 282 |
|
$this->sv->fatal( 'internalerror_info', |
| 283 |
|
__METHOD__ . ": Invalid result object: no error text but not OK\n" ); |
| 284 |
|
} |
| 285 |
|
$rawErrors = $this->sv->getErrors(); // just added a fatal |
| 286 |
|
} |
| 287 |
|
if ( count( $rawErrors ) == 1 ) { |
| 288 |
|
$s = $this->getErrorMessage( $rawErrors[0], $lang ); |
| 289 |
|
if ( $shortContext ) { |