From 051777055429852abda1751bd24bca0f10d9ad86 Mon Sep 17 00:00:00 2001 From: brettp Date: Thu, 17 Feb 2011 18:06:58 +0000 Subject: Fixes #2938: Restored the $vars['entity'] in plugin settings for backward compatibility with plugins. git-svn-id: http://code.elgg.org/elgg/trunk@8275 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/admin/components/plugin_settings.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'views/default/admin/components') diff --git a/views/default/admin/components/plugin_settings.php b/views/default/admin/components/plugin_settings.php index 6feb78725..c2801cec3 100644 --- a/views/default/admin/components/plugin_settings.php +++ b/views/default/admin/components/plugin_settings.php @@ -11,12 +11,15 @@ $plugin = $vars['plugin']; $plugin_id = $plugin->getID(); +// required for plugin settings backward compatibility +$vars['entity'] = $plugin; + if (elgg_view_exists("settings/$plugin_id/edit")) { - + $title = $plugin->manifest->getName(); - + $params = array('id' => "$plugin_id-settings"); $body = elgg_view_form("plugins/settings/save", $params, $vars); - + echo elgg_view_module('info', $title, $body); } \ No newline at end of file -- cgit v1.2.3