| @@ -1,12 +1,12 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | 3 | * @package FireBox |
| 4 | - * @version 1.0.0 Free | |
| 4 | + * @version 2.1.14 Free | |
| 5 | 5 | * |
| 6 | 6 | * @author FirePlugins <info@fireplugins.com> |
| 7 | 7 | * @link https://www.fireplugins.com |
| 8 | - * @copyright Copyright © 2021 FirePlugins All Rights Reserved | |
| 8 | + * @copyright Copyright © 2024 FirePlugins All Rights Reserved | |
| 9 | 9 | * @license GNU GPLv3 <http://www.gnu.org/licenses/gpl.html> or later |
| 10 | 10 | */ |
| 11 | 11 | |
| 12 | 12 | // If this file is called directly, abort. |
| @@ -18,8 +18,13 @@ | ||
| 18 | 18 | if (!function_exists('firebox_autoloader')) |
| 19 | 19 | { |
| 20 | 20 | function firebox_autoloader($class) |
| 21 | 21 | { |
| 22 | + if (strpos($class, 'FireBox\\') !== 0) | |
| 23 | + { | |
| 24 | + return; | |
| 25 | + } | |
| 26 | + | |
| 22 | 27 | // plugin namespaces |
| 23 | 28 | $firebox_namespaces = [ |
| 24 | 29 | 'FireBox\\Core\\' => [ __DIR__ . '/Inc/Core/' ], |
| 25 | 30 | 'FireBox\\Testing\\' => [ dirname(__DIR__) . '/tests/' ], |
| @@ -36,6 +41,5 @@ | ||
| 36 | 41 | } |
| 37 | 42 | } |
| 38 | 43 | |
| 39 | 44 | // autoload classes |
| 40 | -spl_autoload_register('firebox_autoloader'); | |
| 41 | -?> | |
| 45 | +spl_autoload_register('firebox_autoloader'); | |