Fixed the first letter of event timing names getting trimmed off when src-namespace-prefix is not used

This commit is contained in:
Dylan K. Taylor 2023-03-29 23:11:30 +01:00
parent 5e1f837a73
commit bed218d1dd
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -655,7 +655,7 @@ class PluginManager{
}
$prefix = $plugin->getDescription()->getSrcNamespacePrefix();
if(str_starts_with($handlerName, $prefix)){
if(str_starts_with($handlerName, $prefix) && $prefix !== ""){
$handlerName = substr($handlerName, strlen($prefix) + 1);
}