Skip to content
Snippets Groups Projects
Commit 609db2c6 authored by Thijs Kinkhorst's avatar Thijs Kinkhorst Committed by Tim van Dijen
Browse files

Fix some bugs in serialize handler

parent 6ae8174e
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.
Please register or to comment