diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-14 07:52:31 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-14 07:52:31 +0000 |
commit | 30df49bbb363d47b4a3961bb3ec07cdecea7619b (patch) | |
tree | 58905f6343a32ed9bf35baa8298f9851e30259e3 /engine/start.php | |
parent | cd33e6a791409bf0898d6d1db5938b09415289fb (diff) | |
download | elgg-30df49bbb363d47b4a3961bb3ec07cdecea7619b.tar.gz elgg-30df49bbb363d47b4a3961bb3ec07cdecea7619b.tar.bz2 |
Fixes #2547: Plugins can now participate in autoloading classes.
git-svn-id: http://code.elgg.org/elgg/trunk@7074 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/start.php')
-rw-r--r-- | engine/start.php | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |