From 0f3554820faa2f7d7c8fe5add1f252b60efb757f Mon Sep 17 00:00:00 2001 From: root Date: Wed, 2 Jul 2014 22:49:40 +0200 Subject: [PATCH] [fix] work with 1.x --- src/diagnostic.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/diagnostic.php b/src/diagnostic.php index ac96fcf3..89806d27 100644 --- a/src/diagnostic.php +++ b/src/diagnostic.php @@ -91,7 +91,7 @@ function __autoload($class_name) } else { $file_name = $class_name . '.php'; } - + // Attempts to find file in namespace foreach($srcPathList as $namespace => $path ){ $file_path = $path.DIRECTORY_SEPARATOR.$file_name; @@ -112,7 +112,15 @@ function __autoload($class_name) // ================================================================== // ================================================================== -require_once("/usr/share/alternc/panel/class/config_nochk.php"); +// alternc 1.0 +if(is_file("/usr/share/alternc/panel/class/config_nochk.php")){ + require_once("/usr/share/alternc/panel/class/config_nochk.php"); + +}else{ + require_once("/var/alternc/bureau/class/config_nochk.php"); + include "../bureau/class/class_system_bind.php"; +} +