Skip to content

Commit

Permalink
offline export bug fix #58
Browse files Browse the repository at this point in the history
  • Loading branch information
mkucej committed Jun 14, 2021
1 parent a113c71 commit b058e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/items.php
Original file line number Diff line number Diff line change
Expand Up @@ -3121,7 +3121,7 @@ protected function _exportZip(array $items, $locale = 'en_US'): StreamInterface
}

$json_file = "window.created = '" . time() . "';\n";
$json_file .= 'window.jsonItems = ' . \Librarian\Http\Client\json_encode($exported_items) . ';';
$json_file .= 'window.jsonItems = ' . Client\Utils::jsonEncode($exported_items) . ';';

$zip->addFromString('data/items.js', $json_file);
$zip->setCompressionName('data/items.js', ZipArchive::CM_STORE);
Expand Down

0 comments on commit b058e23

Please sign in to comment.