activate()) { $activated_guids[] = $guid; } else { register_error(elgg_echo('admin:plugins:activate:no', array($plugin->manifest->getName()))); } } // don't regenerate the simplecache because the plugin won't be // loaded until next run. Just invalidate and let it regenerate as needed elgg_invalidate_simplecache(); elgg_filepath_cache_reset(); if (count($activated_guids) === 1) { forward("admin/plugins/advanced#elgg-plugin-" . $plugin_guids[0]); } else { forward(REFERER); }