includes/filerepo/file/LocalFile.php 1 location
|
@@ 1147-1151 (lines=5) @@
|
1144 |
|
|
1145 |
|
$options = array(); |
1146 |
|
$handler = MediaHandler::getHandler( $props['mime'] ); |
1147 |
|
if ( $handler ) { |
1148 |
|
$options['headers'] = $handler->getStreamHeaders( $props['metadata'] ); |
1149 |
|
} else { |
1150 |
|
$options['headers'] = array(); |
1151 |
|
} |
1152 |
|
|
1153 |
|
// Trim spaces on user supplied text |
1154 |
|
$comment = trim( $comment ); |
maintenance/importImages.php 1 location
|
@@ 246-250 (lines=5) @@
|
243 |
|
$flags = 0; |
244 |
|
$publishOptions = array(); |
245 |
|
$handler = MediaHandler::getHandler( $props['mime'] ); |
246 |
|
if ( $handler ) { |
247 |
|
$publishOptions['headers'] = $handler->getStreamHeaders( $props['metadata'] ); |
248 |
|
} else { |
249 |
|
$publishOptions['headers'] = array(); |
250 |
|
} |
251 |
|
$archive = $image->publish( $file, $flags, $publishOptions ); |
252 |
|
if ( !$archive->isGood() ) { |
253 |
|
echo "failed. (" . |