aboutsummaryrefslogtreecommitdiff
path: root/admin/plugins.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/plugins.php')
-rw-r--r--admin/plugins.php51
1 files changed, 27 insertions, 24 deletions
diff --git a/admin/plugins.php b/admin/plugins.php
index 9900c98e9..7c452ad2d 100644
--- a/admin/plugins.php
+++ b/admin/plugins.php
@@ -1,28 +1,31 @@
<?php
+/**
+ * Elgg administration plugin system index
+ * This is a special page that permits the configuration of plugins in a standard way.
+ *
+ * @package Elgg
+ * @subpackage Core
+ * @author Curverider Ltd
+ * @link http://elgg.org/
+ */
- /**
- * Elgg administration plugin system index
- * This is a special page that permits the configuration of plugins in a standard way.
- *
- * @package Elgg
- * @subpackage Core
- * @author Curverider Ltd
- * @link http://elgg.org/
- */
+// Get the Elgg framework
+require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
- // Get the Elgg framework
- require_once(dirname(dirname(__FILE__)) . "/engine/start.php");
+// Make sure only valid admin users can see this
+admin_gatekeeper();
- // Make sure only valid admin users can see this
- admin_gatekeeper();
-
- // Set admin user for user block
- //set_page_owner($_SESSION['guid']);
-
- // Regenerate plugin list
- regenerate_plugin_list();
-
- // Display main admin menu
- page_draw(elgg_echo("admin:plugins"),elgg_view_layout("two_column_left_sidebar", '', elgg_view_title(elgg_echo('admin:plugins')) . elgg_view("admin/plugins", array('installed_plugins' => get_installed_plugins()))));
-
-?> \ No newline at end of file
+// Set admin user for user block
+//set_page_owner($_SESSION['guid']);
+
+// Regenerate plugin list
+regenerate_plugin_list();
+
+// Display main admin menu
+$vars = array('installed_plugins' => get_installed_plugins());
+
+$title = elgg_view_title(elgg_echo('admin:plugins'));
+$main_box = elgg_view("admin/plugins", $vars);
+$content = elgg_view_layout("two_column_left_sidebar", '', $title . $main_box);
+
+page_draw(elgg_echo('admin:plugins'), $content); \ No newline at end of file