aboutsummaryrefslogtreecommitdiff
path: root/views/default
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-05-19 23:42:41 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-05-19 23:42:41 +0000
commit7ee9c7cacbe5da9ecc8c5bb8d3ba51be3ce1d30a (patch)
treec2edb606412996b5ef1a0222ea6039014bc1c8c8 /views/default
parent81d6884ecad771f4b4f2d8be7572d1a89deaab10 (diff)
downloadelgg-7ee9c7cacbe5da9ecc8c5bb8d3ba51be3ce1d30a.tar.gz
elgg-7ee9c7cacbe5da9ecc8c5bb8d3ba51be3ce1d30a.tar.bz2
Fixes #3163 plugin/<plugin id>/settings.php is now the preferred way to add settings plugins
git-svn-id: http://code.elgg.org/elgg/trunk@9101 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'views/default')
-rw-r--r--views/default/object/plugin/advanced.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/views/default/object/plugin/advanced.php b/views/default/object/plugin/advanced.php
index 4c8bc8c17..9aed4163c 100644
--- a/views/default/object/plugin/advanced.php
+++ b/views/default/object/plugin/advanced.php
@@ -182,8 +182,9 @@ if ($files) {
</div>
<div class="elgg-body">
<?php
-$settings_view = 'settings/' . $plugin->getID() . '/edit';
-if (elgg_view_exists($settings_view)) {
+$settings_view_old = 'settings/' . $plugin->getID() . '/edit';
+$settings_view_new = 'plugins/' . $plugin->getID() . '/settings';
+if (elgg_view_exists($settings_view_old) || elgg_view_exists($settings_view_new)) {
$link = elgg_get_site_url() . "admin/plugin_settings/" . $plugin->getID();
$settings_link = "<a class='plugin_settings small link' href='$link'>[" . elgg_echo('settings') . "]</a>";
}