From d92e194d02aa3ca2fab82081baf8c781744de0ec Mon Sep 17 00:00:00 2001 From: stickz Date: Mon, 10 Jan 2022 02:53:31 -0500 Subject: [PATCH] Go to end of exploded array instead --- php/util.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/php/util.php b/php/util.php index 90948b475..cb434facb 100644 --- a/php/util.php +++ b/php/util.php @@ -9,9 +9,7 @@ { // Remove namespaces from the classname string // Important for compatibility with 3rd party plugins - if (preg_match('@\\\\([\w]+)$@', $class, $matches)) { - $class = $matches[1]; - } + $class = end(explode('\\',$class)); require_once 'utility/'. strtolower($class). '.php'; });