diff options
author | Jeroen Dalsem <jdalsem@coldtrick.com> | 2013-05-30 15:46:31 +0200 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2013-05-30 19:02:34 -0400 |
commit | b980c75fdf5c1fecb267b8984f9ec363c1ae5658 (patch) | |
tree | 198407da43feda795c4b35d92aa8232919bee529 | |
parent | f4fef67a3833138b5f87227a0297cd66fcf4a207 (diff) | |
download | elgg-b980c75fdf5c1fecb267b8984f9ec363c1ae5658.tar.gz elgg-b980c75fdf5c1fecb267b8984f9ec363c1ae5658.tar.bz2 |
change order so plugin/[pluginname]/settings is used instead of
settings/edit after upgrade of a plugin
-rw-r--r-- | views/default/forms/plugins/settings/save.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/views/default/forms/plugins/settings/save.php b/views/default/forms/plugins/settings/save.php index dc7b2fef7..116529905 100644 --- a/views/default/forms/plugins/settings/save.php +++ b/views/default/forms/plugins/settings/save.php @@ -17,11 +17,11 @@ if ($type != 'user') { $type = ''; } -if (elgg_view_exists("{$type}settings/$plugin_id/edit")) { +if (elgg_view_exists("plugins/$plugin_id/{$type}settings")) { + echo elgg_view("plugins/$plugin_id/{$type}settings", $vars); +} elseif (elgg_view_exists("{$type}settings/$plugin_id/edit")) { elgg_deprecated_notice("{$type}settings/$plugin_id/edit was deprecated in favor of plugins/$plugin_id/{$type}settings", 1.8); echo elgg_view("{$type}settings/$plugin_id/edit", $vars); -} else { - echo elgg_view("plugins/$plugin_id/{$type}settings", $vars); } echo '<div class="elgg-foot">'; |