From 0070a9e97c60a3b6fae38a7b171cc01c77fb0635 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Wed, 16 Aug 2006 05:50:09 +0000 Subject: [PATCH] file_exists does not work with the include path, so we need to switch to include_once which only produces a warning, which we suppress, and then rely on class_exists() to check for module existence --- Loader.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Loader.php b/Loader.php index 27c6dc2..1f17959 100644 --- a/Loader.php +++ b/Loader.php @@ -162,13 +162,7 @@ class BSLoader */ public static function LoadModule($name) { - if (!file_exists("ISSO/$name.php")) - { - trigger_error('Specified module does not exist'); - return; - } - - require_once("ISSO/$name.php"); + @include_once("ISSO/$name.php"); $class = "BS$name"; -- 2.43.5