Fixed \XF\Api\Docs\ClassParser :: getTypeNameFromShortName produces odd output

DragonByte Tech

Well-known member
Affected version
2.1.0 RC2
Either the same str_replace bug exists in this method, or something else is wrong.

By default, a shortname of DBTech\eCommerce:LicenseField produces __LicenseField.

Either it's meant to produce DBTech_eCommerce_LicenseField in which case the line should say return str_replace($nameParts[0], '\\', '_') . '_' . $nameParts[1]; or it's meant to produce LicenseField in which case the line should say return str_replace($nameParts[0], '\\', '') . $nameParts[1];
 
It's supposed to be the AddOn_Id_Type format (to avoid ambiguity). Sorted for the next release.
 
Back
Top Bottom