]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixed problem removing plugin entities if physical files were deleted.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 4 Jan 2011 04:12:01 +0000 (04:12 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 4 Jan 2011 04:12:01 +0000 (04:12 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7825 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/plugins.php

index 4a25955f90d69e8438f130e3ad0ae10af792dabb..cfb27cd8c456ca8a6b826d0c2287774a127d95fa 100644 (file)
@@ -159,11 +159,11 @@ function elgg_generate_plugin_entities() {
        foreach ($known_plugins as $plugin) {
                if ($plugin->isActive()) {
                        $plugin->deactivate();
-                       // remove the priority.
-                       $name = elgg_namespace_plugin_private_setting('internal', 'priority');
-                       remove_private_setting($plugin->guid, $name);
-                       $plugin->disable();
                }
+               // remove the priority.
+               $name = elgg_namespace_plugin_private_setting('internal', 'priority');
+               remove_private_setting($plugin->guid, $name);
+               $plugin->disable();
        }
 
        access_show_hidden_entities($old_access);