includes/filerepo/file/LocalFile.php 1 location
|
@@ 1189-1193 (lines=5) @@
|
1186 |
|
|
1187 |
|
$options = []; |
1188 |
|
$handler = MediaHandler::getHandler( $props['mime'] ); |
1189 |
|
if ( $handler ) { |
1190 |
|
$options['headers'] = $handler->getStreamHeaders( $props['metadata'] ); |
1191 |
|
} else { |
1192 |
|
$options['headers'] = []; |
1193 |
|
} |
1194 |
|
|
1195 |
|
// Trim spaces on user supplied text |
1196 |
|
$comment = trim( $comment ); |
maintenance/importImages.php 1 location
|
@@ 253-257 (lines=5) @@
|
250 |
|
$flags = 0; |
251 |
|
$publishOptions = []; |
252 |
|
$handler = MediaHandler::getHandler( $props['mime'] ); |
253 |
|
if ( $handler ) { |
254 |
|
$publishOptions['headers'] = $handler->getStreamHeaders( $props['metadata'] ); |
255 |
|
} else { |
256 |
|
$publishOptions['headers'] = []; |
257 |
|
} |
258 |
|
$archive = $image->publish( $file, $flags, $publishOptions ); |
259 |
|
if ( !$archive->isGood() ) { |
260 |
|
echo "failed. (" . |