aboutsummaryrefslogtreecommitdiff
path: root/actions/admin/plugins/enable.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/admin/plugins/enable.php')
-rw-r--r--actions/admin/plugins/enable.php32
1 files changed, 0 insertions, 32 deletions
diff --git a/actions/admin/plugins/enable.php b/actions/admin/plugins/enable.php
deleted file mode 100644
index 08e048586..000000000
--- a/actions/admin/plugins/enable.php
+++ /dev/null
@@ -1,32 +0,0 @@
-<?php
- /**
- * Enable plugin action.
- *
- * @package Elgg
- * @subpackage Core
- * @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
- * @author Curverider Ltd
- * @copyright Curverider Ltd 2008-2009
- * @link http://elgg.org/
- */
-
- require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/engine/start.php");
-
- // block non-admin users
- admin_gatekeeper();
-
- // Validate the action
- action_gatekeeper();
-
- // Get the user
- $plugin = get_input('plugin');
-
- // Disable
- if (enable_plugin($plugin))
- system_message(sprintf(elgg_echo('admin:plugins:enable:yes'), $plugin));
- else
- register_error(sprintf(elgg_echo('admin:plugins:enable:no'), $plugin));
-
- forward($_SERVER['HTTP_REFERER']);
- exit;
-?> \ No newline at end of file