aboutsummaryrefslogtreecommitdiff
path: root/actions/admin
diff options
context:
space:
mode:
Diffstat (limited to 'actions/admin')
-rw-r--r--actions/admin/plugins/disable.php2
-rw-r--r--actions/admin/plugins/enable.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/actions/admin/plugins/disable.php b/actions/admin/plugins/disable.php
index ae3139ef1..f98eda84b 100644
--- a/actions/admin/plugins/disable.php
+++ b/actions/admin/plugins/disable.php
@@ -22,7 +22,7 @@
if (disable_plugin($plugin))
system_message(sprintf(elgg_echo('admin:plugins:disable:yes'), $plugin));
else
- system_message(sprintf(elgg_echo('admin:plugins:disable:no'), $plugin));
+ register_error(sprintf(elgg_echo('admin:plugins:disable:no'), $plugin));
forward($_SERVER['HTTP_REFERER']);
exit;
diff --git a/actions/admin/plugins/enable.php b/actions/admin/plugins/enable.php
index 28b0f9f33..380e5688a 100644
--- a/actions/admin/plugins/enable.php
+++ b/actions/admin/plugins/enable.php
@@ -22,7 +22,7 @@
if (enable_plugin($plugin))
system_message(sprintf(elgg_echo('admin:plugins:enable:yes'), $plugin));
else
- system_message(sprintf(elgg_echo('admin:plugins:enable:no'), $plugin));
+ register_error(sprintf(elgg_echo('admin:plugins:enable:no'), $plugin));
forward($_SERVER['HTTP_REFERER']);
exit;