From 7f976bd883207f3d6f47e9a5cfe9c55021b8bd34 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 29 Apr 2009 09:50:25 +0000 Subject: [PATCH] "fix for newly introduced bug reported on the lists: Fatal error: Class 'notifications' not found in /home/domain/public_html/egw/etemplate/inc/class.bo_tracking.inc.php --> reverts an older commit fixing a problem between the (depracated and no longer working) browser app and the browser class in the API" --- phpgwapi/inc/common_functions.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/common_functions.inc.php b/phpgwapi/inc/common_functions.inc.php index 071d87da44..3167719f61 100755 --- a/phpgwapi/inc/common_functions.inc.php +++ b/phpgwapi/inc/common_functions.inc.php @@ -1388,8 +1388,8 @@ function __autoload($class) { $components = explode('_',$class); $app = array_shift($components); - // classes using the new naming schema app_class_name, eg. admin_cmd, but not app/inc/class.app.inc.php - if ($app != $class && file_exists($file = EGW_INCLUDE_ROOT.'/'.$app.'/inc/class.'.$class.'.inc.php') || + // classes using the new naming schema app_class_name, eg. admin_cmd + if (file_exists($file = EGW_INCLUDE_ROOT.'/'.$app.'/inc/class.'.$class.'.inc.php') || // classes using the new naming schema app_class_name, eg. admin_cmd isset($components[0]) && file_exists($file = EGW_INCLUDE_ROOT.'/'.$app.'/inc/class.'.$app.'_'.$components[0].'.inc.php') || // eGW api classes using the old naming schema, eg. html