Update auto_loader.php

This commit is contained in:
FusionPBX
2025-04-01 09:04:29 -06:00
committed by GitHub
parent aedeae454d
commit a39cd30d5c
+1
View File
@@ -134,6 +134,7 @@ class auto_loader {
$search_path[] = glob($project_path . "/*/*/resources/interfaces/" . $class_name . ".php"); $search_path[] = glob($project_path . "/*/*/resources/interfaces/" . $class_name . ".php");
$search_path[] = glob($project_path . "/*/*/resources/traits/" . $class_name . ".php"); $search_path[] = glob($project_path . "/*/*/resources/traits/" . $class_name . ".php");
$search_path[] = glob($project_path . "/*/*/resources/classes/" . $class_name . ".php"); $search_path[] = glob($project_path . "/*/*/resources/classes/" . $class_name . ".php");
//fix class names in the plugins directory prefixed with 'plugin_' //fix class names in the plugins directory prefixed with 'plugin_'
if (str_starts_with($class_name, 'plugin_')) { if (str_starts_with($class_name, 'plugin_')) {
$class_name = substr($class_name, 7); $class_name = substr($class_name, 7);