diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-10-20 11:37:24 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-10-20 11:37:24 +0000 |
commit | 18082c3b01d1c15b236f78259d0f7e0f487e211d (patch) | |
tree | a8b3b0b314e2eb2cf23de1811fd510ae5703def1 /engine/lib/plugins.php | |
parent | 65ee9251f2975296a9f9627b36327a59af443b0d (diff) | |
download | elgg-18082c3b01d1c15b236f78259d0f7e0f487e211d.tar.gz elgg-18082c3b01d1c15b236f78259d0f7e0f487e211d.tar.bz2 |
Important fix for deleted plugins.
git-svn-id: https://code.elgg.org/elgg/trunk@2282 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/plugins.php')
-rw-r--r-- | engine/lib/plugins.php | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php index 83a81a81b..b78418243 100644 --- a/engine/lib/plugins.php +++ b/engine/lib/plugins.php @@ -182,13 +182,15 @@ if (sizeof($plugins))
foreach($plugins as $mod) {
if (is_plugin_enabled($mod)) {
- if (!@include($CONFIG->pluginspath . $mod . "/start.php"))
- throw new PluginException(sprintf(elgg_echo('PluginException:MisconfiguredPlugin'), $mod));
- if (is_dir($CONFIG->pluginspath . $mod . "/views/default")) {
- autoregister_views("",$CONFIG->pluginspath . $mod . "/views/default",$CONFIG->pluginspath . $mod . "/views/");
- }
- if (is_dir($CONFIG->pluginspath . $mod . "/languages")) {
- register_translations($CONFIG->pluginspath . $mod . "/languages/");
+ if (file_exists($CONFIG->pluginspath . $mod)) {
+ if (!@include($CONFIG->pluginspath . $mod . "/start.php"))
+ throw new PluginException(sprintf(elgg_echo('PluginException:MisconfiguredPlugin'), $mod));
+ if (is_dir($CONFIG->pluginspath . $mod . "/views/default")) {
+ autoregister_views("",$CONFIG->pluginspath . $mod . "/views/default",$CONFIG->pluginspath . $mod . "/views/");
+ }
+ if (is_dir($CONFIG->pluginspath . $mod . "/languages")) {
+ register_translations($CONFIG->pluginspath . $mod . "/languages/");
+ }
}
}
}
|