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/lib/plugins.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/lib/plugins.php')
-rw-r--r-- | engine/lib/plugins.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php index a36f2bf6d..52f498bf7 100644 --- a/engine/lib/plugins.php +++ b/engine/lib/plugins.php @@ -191,6 +191,10 @@ function load_plugins() { if (is_dir($CONFIG->pluginspath . $mod . "/languages")) { register_translations($CONFIG->pluginspath . $mod . "/languages/"); } + + if (is_dir($CONFIG->pluginspath . "$mod/classes")) { + elgg_register_classes($CONFIG->pluginspath . "$mod/classes"); + } } } } |