Skip to content

Commit

Permalink
Merge pull request #52 from inductiveload/djvu-on-top
Browse files Browse the repository at this point in the history
Make DJVU the default
  • Loading branch information
samwilson authored Apr 14, 2021
2 parents db0a285 + 4ff1532 commit f3e6097
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Controller/UploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public function fill( Request $request, Response $response ) {
$query = $request->getQueryParams();
$iaId = trim( $query['iaId'] ?? '' );
$commonsName = $this->commonsClient->normalizePageTitle( $query['commonsName'] ?? '' );
$format = $query['format'] ?? 'pdf';
$format = $query['format'] ?? 'djvu';
$fileSource = $query['fileSource'] ?? 'djvu';
// Validate inputs.
if ( $iaId === '' || $commonsName === '' ) {
Expand Down Expand Up @@ -460,7 +460,7 @@ protected function outputsInitTemplate( array $params, Response $response ) {
'iaId' => '',
'commonsName' => '',
'jobs' => [],
'format' => 'pdf',
'format' => 'djvu',
'wiki_base_url' => $this->config['wiki_base_url'],
];
$params = array_merge( $defaultParams, $params );
Expand Down

0 comments on commit f3e6097

Please # to comment.