includes/upload/UploadBase.php 1 location
|
@@ 481-486 (lines=6) @@
|
| 478 |
|
|
| 479 |
|
$error = true; |
| 480 |
|
Hooks::run( 'UploadVerifyFile', [ $this, $mime, &$error ] ); |
| 481 |
|
if ( $error !== true ) { |
| 482 |
|
if ( !is_array( $error ) ) { |
| 483 |
|
$error = [ $error ]; |
| 484 |
|
} |
| 485 |
|
return $error; |
| 486 |
|
} |
| 487 |
|
|
| 488 |
|
wfDebug( __METHOD__ . ": all clear; passing.\n" ); |
| 489 |
|
|
includes/specials/SpecialUpload.php 1 location
|
@@ 422-426 (lines=5) @@
|
| 419 |
|
. "</li>\n"; |
| 420 |
|
} |
| 421 |
|
} else { |
| 422 |
|
if ( $args === true ) { |
| 423 |
|
$args = []; |
| 424 |
|
} elseif ( !is_array( $args ) ) { |
| 425 |
|
$args = [ $args ]; |
| 426 |
|
} |
| 427 |
|
$msg = "\t<li>" . $this->msg( $warning, $args )->parse() . "</li>\n"; |
| 428 |
|
} |
| 429 |
|
$warningHtml .= $msg; |