Skip to content

Commit

Permalink
Merge pull request #82 from catalyst/73-fix-csv-alignment
Browse files Browse the repository at this point in the history
Fix csv alignment by adding default columns #73
  • Loading branch information
picnicpete authored Oct 28, 2024
2 parents 4cad4d1 + 5be547c commit 405933d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions classes/file_search.php
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,9 @@ public static function search_file(object $filerecord, object $criteria, $stream
self::CSV_FILEPATH => $filerecord->filepath,
self::CSV_FILENAME => $filerecord->filename,
self::CSV_MIMETYPE => $filerecord->mimetype,
self::CSV_STRATEGY => 'plain',
self::CSV_INTERNAL => '',
self::CSV_REPLACE => '',
];
switch ($filerecord->mimetype) {
case 'application/zip.h5p':
Expand All @@ -450,8 +453,6 @@ public static function search_file(object $filerecord, object $criteria, $stream
}
break;
default:
$csv[self::CSV_STRATEGY] = 'plain';
$csv[self::CSV_INTERNAL] = '';
$matchcount = self::grep_content($csv, $file->get_content(), $criteria, $stream);
break;
}
Expand Down

0 comments on commit 405933d

Please sign in to comment.