includes/specials/SpecialUpload.php 1 location
|
@@ 434-438 (lines=5) @@
|
431 |
|
. "</li>\n"; |
432 |
|
} |
433 |
|
} else { |
434 |
|
if ( $args === true ) { |
435 |
|
$args = []; |
436 |
|
} elseif ( !is_array( $args ) ) { |
437 |
|
$args = [ $args ]; |
438 |
|
} |
439 |
|
$msg = "\t<li>" . $this->msg( $warning, $args )->parse() . "</li>\n"; |
440 |
|
} |
441 |
|
$warningHtml .= $msg; |
includes/upload/UploadBase.php 1 location
|
@@ 482-487 (lines=6) @@
|
479 |
|
|
480 |
|
$error = true; |
481 |
|
Hooks::run( 'UploadVerifyFile', [ $this, $mime, &$error ] ); |
482 |
|
if ( $error !== true ) { |
483 |
|
if ( !is_array( $error ) ) { |
484 |
|
$error = [ $error ]; |
485 |
|
} |
486 |
|
return $error; |
487 |
|
} |
488 |
|
|
489 |
|
wfDebug( __METHOD__ . ": all clear; passing.\n" ); |
490 |
|
|