From 30df49bbb363d47b4a3961bb3ec07cdecea7619b Mon Sep 17 00:00:00 2001 From: ewinslow Date: Thu, 14 Oct 2010 07:52:31 +0000 Subject: Fixes #2547: Plugins can now participate in autoloading classes. git-svn-id: http://code.elgg.org/elgg/trunk@7074 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/start.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'engine/start.php') diff --git a/engine/start.php b/engine/start.php index a84a19e0d..0bf652cb6 100644 --- a/engine/start.php +++ b/engine/start.php @@ -77,7 +77,6 @@ foreach ($required_files as $file) { set_error_handler('__elgg_php_error_handler'); set_exception_handler('__elgg_php_exception_handler'); - /** * Load the system settings */ @@ -113,6 +112,10 @@ foreach($lib_files as $file) { } } +// prep core classes to be autoloadable +spl_autoload_register('__elgg_autoload'); +elgg_register_classes(dirname(__FILE__).'/classes'); + // confirm that the installation completed successfully verify_installation(); -- cgit v1.2.3