aboutsummaryrefslogtreecommitdiff
path: root/settings/plugins.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/plugins.php')
-rw-r--r--settings/plugins.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/settings/plugins.php b/settings/plugins.php
index 11459a6b7..719634d52 100644
--- a/settings/plugins.php
+++ b/settings/plugins.php
@@ -1,6 +1,6 @@
<?php
/**
- * Elgg user settings functions.
+ * Elgg user plugin settings.
*
* @package Elgg
* @subpackage Core
@@ -8,7 +8,6 @@
* @link http://elgg.org/
*/
-// Get the Elgg framework
require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
// Make sure only valid users can see this
@@ -16,8 +15,12 @@ gatekeeper();
// Make sure we don't open a security hole ...
if ((!page_owner_entity()) || (!page_owner_entity()->canEdit())) {
- set_page_owner($_SESSION['guid']);
+ set_page_owner(get_loggedin_userid());
}
-// Display main admin menu
-page_draw(elgg_echo("usersettings:plugins"),elgg_view_layout('one_column_with_sidebar', elgg_view_title(elgg_echo("usersettings:plugins")) . elgg_view("usersettings/plugins", array('installed_plugins' => get_installed_plugins()))));
+$content = elgg_view_title(elgg_echo("usersettings:plugins"));
+$content .= elgg_view("usersettings/plugins", array('installed_plugins' => get_installed_plugins()));
+
+$body = elgg_view_layout('one_column_with_sidebar', $content);
+
+page_draw(elgg_echo("usersettings:plugins"), $body);