From 8cdfd06506c31803865f7772f6ef8ecec3883463 Mon Sep 17 00:00:00 2001 From: int2001 Date: Wed, 17 Jan 2024 15:58:50 +0000 Subject: [PATCH] Clever... classloader was based upon LENGTH of Productname. Wave is 1 char shorter than Cloud --- application/helpers/psr4_autoloader_helper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/helpers/psr4_autoloader_helper.php b/application/helpers/psr4_autoloader_helper.php index 741440fe3..5f8a3259b 100644 --- a/application/helpers/psr4_autoloader_helper.php +++ b/application/helpers/psr4_autoloader_helper.php @@ -7,10 +7,10 @@ defined('BASEPATH') OR exit('No direct script access allowed'); * Extremely simple autoloader helper, has lots of shortcomings */ spl_autoload_register(function ($class) { - if (mb_substr($class, 0, 9) !== 'Wavelog\\') { + if (mb_substr($class, 0, 8) !== 'Wavelog\\') { return false; } - $class=substr($class,9); + $class=substr($class,8); $file = str_replace('\\', DIRECTORY_SEPARATOR, $class).'.php'; $file = __DIR__ . "/../../src/" . $file; if (file_exists($file)) {