Skip to content

Commit

Permalink
Fix broken zip importer, which missed critical arguments
Browse files Browse the repository at this point in the history
Darn you, dynamic language and general sloppiness
  • Loading branch information
mikesname committed Dec 11, 2024
1 parent c013292 commit a8f675a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers/TeiEditions_Helpers_DataImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function associateItems($path, $name, $mime, &$done)
* @param int $updated out-param for the number of items updated
* @throws Omeka_Record_Exception
*/
private function readImportZip($zipPath, $neatline, $enhance, &$created = 0, &$updated = 0)
private function readImportZip($zipPath, $neatline, $enhance, $force, &$created = 0, &$updated = 0)
{
$temp = $this->createTempDir();

Expand All @@ -170,7 +170,7 @@ private function readImportZip($zipPath, $neatline, $enhance, &$created = 0, &$u
$zip->close();

foreach (glob($temp . '/*.xml') as $path) {
$this->updateItem($path, basename($path), $neatline, $enhance, $created, $updated);
$this->updateItem($path, basename($path), $neatline, $enhance, $force, $created, $updated);
// NB: If I'm reading the docs right this should prevent a timeout
// on large zips:
set_time_limit(10);
Expand Down

0 comments on commit a8f675a

Please sign in to comment.