From 3d87b4803566d8997de4b36e490056fa38615e72 Mon Sep 17 00:00:00 2001 From: marcus Date: Wed, 21 Jan 2009 12:33:23 +0000 Subject: Closes #700: If a plugin doesn't physically exist then it is deleted. git-svn-id: https://code.elgg.org/elgg/trunk@2594 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/plugins.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engine/lib/plugins.php') diff --git a/engine/lib/plugins.php b/engine/lib/plugins.php index 358dc3ddf..ff6f1aa0d 100644 --- a/engine/lib/plugins.php +++ b/engine/lib/plugins.php @@ -622,6 +622,8 @@ { global $CONFIG, $ENABLED_PLUGINS_CACHE; + if (!file_exists($CONFIG->pluginspath . $plugin)) return false; + $site_guid = (int) $site_guid; if ($site_guid == 0) $site_guid = $CONFIG->site_guid; -- cgit v1.2.3