From: cajus Date: Wed, 16 Jan 2008 17:00:44 +0000 (+0000) Subject: Added error messages X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=77a0c990d514c9e2f0b6e69b513c3398447ee2f9;p=gosa.git Added error messages git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8419 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index 50fb2868c..48e1db979 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -93,6 +93,12 @@ $REWRITE= array( "ä" => "ae", /* Class autoloader */ function __autoload($class_name) { global $class_mapping, $BASE_DIR; + + if ($class_mapping === NULL){ + echo sprintf(_("Fatal error: no class locations defined - please run '%s' to fix this"), "update-gosa"); + exit; + } + if (isset($class_mapping[$class_name])){ require_once($BASE_DIR."/".$class_mapping[$class_name]); } else {