Skip to content
Snippets Groups Projects
Commit 650e72f2 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst
Browse files

Fix some bugs in serialize handler

parent a20debe7
No related branches found
No related tags found
No related merge requests found
......@@ -134,11 +134,11 @@ class MetaDataStorageHandlerSerialize extends MetaDataStorageSource
$extLen = strlen(self::EXTENSION);
$finder = new Finder();
$finder->directories()->name(sprintf('/%s/$', self::EXTENSION))->in($this->directory);
$finder->files()->name('*' . self::EXTENSION)->in($this->directory . DIRECTORY_SEPARATOR . $set);
$ret = [];
foreach ($finder as $file) {
$entityId = substr($file->getPathName(), 0, -$extLen);
$entityId = substr($file->getFileName(), 0, -$extLen);
$entityId = rawurldecode($entityId);
$md = $this->getMetaData($entityId, $set);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment