Fixed Import manager does not handle vendor prefix

Kirby

Well-known member
Affected version
2.0.9
We've created an Importers Add-on with a vendor prefix (eg. ID is vendorprefix/id), but this does not seem to be handled correctly in \XF\Import\Manager::getImporterShortNamesForType(), the Importer does not get listed.
 
This is sorted for the next release. As a workaround:
PHP:
$importers = \XF\Import\Manager::getImporterShortNamesForType('Vendor/AddOnId');
$importers = array_map(function($shortname)
{
   return str_replace('/', '\\', $shortname);
}, $importers);
 
Top Bottom