aboutsummaryrefslogtreecommitdiff
path: root/views/default/admin/components
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/admin/components')
-rw-r--r--views/default/admin/components/plugin_settings.php15
1 files changed, 5 insertions, 10 deletions
diff --git a/views/default/admin/components/plugin_settings.php b/views/default/admin/components/plugin_settings.php
index 8179728ed..30cf3d21a 100644
--- a/views/default/admin/components/plugin_settings.php
+++ b/views/default/admin/components/plugin_settings.php
@@ -11,7 +11,7 @@
$plugin = $vars['plugin'];
$plugin_id = $plugin->getID();
-if (elgg_view("settings/$plugin_id/edit")) {
+if (elgg_view_exists("settings/$plugin_id/edit")) {
?>
<div class="elgg-module elgg-module-info">
@@ -19,15 +19,10 @@ if (elgg_view("settings/$plugin_id/edit")) {
<h3><?php echo $plugin->manifest->getName(); ?></h3>
</div>
<div class="elgg-body">
- <div id="<?php echo $plugin_id; ?>_settings">
- <?php echo elgg_view("object/plugin", array(
- 'plugin' => $plugin,
- // in for backward compatibility
- 'entity' => $plugin,
- 'type' => 'admin'
- ));
- ?>
- </div>
+ <?php
+ $params = array('internalid' => "$plugin_id-settings");
+ echo elgg_view_form("plugins/settings/save", $params, $vars);
+ ?>
</div>
</div>
<?php