summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7a4834a)
raw | patch | inline | side by side (parent: 7a4834a)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 16 Jan 2008 17:00:44 +0000 (17:00 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 16 Jan 2008 17:00:44 +0000 (17:00 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8419 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/functions.inc | patch | blob | history |
index 50fb2868cc7dc6e0d6db73e9033f5786916c5c52..48e1db979f941c05703ca3fde1cb812e3cc16af1 100644 (file)
/* 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"), "<b>update-gosa</b>");
+ exit;
+ }
+
if (isset($class_mapping[$class_name])){
require_once($BASE_DIR."/".$class_mapping[$class_name]);
} else {