K Kirby Well-known member Aug 23, 2018 #1 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.
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.
Chris D XenForo developer Staff member Aug 24, 2018 #2 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);
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);