https://bugzilla.wikimedia.org/show_bug.cgi?id=55883

--- Comment #1 from Sam Reed (reedy) <[email protected]> ---
Looks like it's because $options is blindly overwritten

        # Import the file
        if ( isset( $options['dry'] ) ) {
            echo " publishing {$file} by '" . $wgUser->getName() . "', comment
'$commentText'... ";
        } else {
            $props = FSFile::getPropsFromPath( $file );
            $flags = 0;
            $options = array();
            $handler = MediaHandler::getHandler( $props['mime'] );
            if ( $handler ) {
                $options['headers'] = $handler->getStreamHeaders(
$props['metadata'] );
            } else {
                $options['headers'] = array();
            }
            $archive = $image->publish( $file, $flags, $options );
            if ( !$archive->isGood() ) {
                echo "failed. (" .
                    $archive->getWikiText() .
                    ")\n";
                $failed++;
                continue;
            }
        }


Some parameters are variablised, some aren't. Any that aren't won't be carried
forward...

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to