From 3553de2185c2582ffdb7b85c730fac97244a0b09 Mon Sep 17 00:00:00 2001 From: cajus Date: Tue, 26 Jan 2010 09:59:56 +0000 Subject: [PATCH] Require PHP >5.1, but move to separate autoloader git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15309 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/functions.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gosa-core/include/functions.inc b/gosa-core/include/functions.inc index a543c7cf6..34ab73482 100644 --- a/gosa-core/include/functions.inc +++ b/gosa-core/include/functions.inc @@ -120,7 +120,7 @@ $REWRITE= array( "ä" => "ae", * * \param string 'class_name' The currently requested class */ -function __autoload($class_name) { +function __gosa_autoload($class_name) { global $class_mapping, $BASE_DIR; if ($class_mapping === NULL){ @@ -135,6 +135,7 @@ function __autoload($class_name) { exit; } } +spl_autoload_register('__gosa_autoload'); /*! \brief Checks if a class is available. -- 2.30.2