aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-17 18:06:58 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-17 18:06:58 +0000
commit051777055429852abda1751bd24bca0f10d9ad86 (patch)
tree7153c40881804d34dd5c1f653405be51fe7a21f5 /views
parent4de4452ba04cf48dfaaea664a3b07a491232e2c5 (diff)
downloadelgg-051777055429852abda1751bd24bca0f10d9ad86.tar.gz
elgg-051777055429852abda1751bd24bca0f10d9ad86.tar.bz2
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
Diffstat (limited to 'views')
-rw-r--r--views/default/admin/components/plugin_settings.php9
1 files changed, 6 insertions, 3 deletions
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