aboutsummaryrefslogtreecommitdiff
path: root/actions/comments
diff options
context:
space:
mode:
Diffstat (limited to 'actions/comments')
-rw-r--r--actions/comments/add.php4
-rw-r--r--actions/comments/delete.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/actions/comments/add.php b/actions/comments/add.php
index d89fd7866..bdc7fd06f 100644
--- a/actions/comments/add.php
+++ b/actions/comments/add.php
@@ -39,12 +39,12 @@
system_message(elgg_echo("generic_comment:posted"));
} else {
- system_message(elgg_echo("generic_comment:failure"));
+ register_error(elgg_echo("generic_comment:failure"));
}
} else {
- system_message(elgg_echo("generic_comment:notfound"));
+ register_error(elgg_echo("generic_comment:notfound"));
}
diff --git a/actions/comments/delete.php b/actions/comments/delete.php
index 26875942c..4b5af9e18 100644
--- a/actions/comments/delete.php
+++ b/actions/comments/delete.php
@@ -29,7 +29,7 @@
$url = "";
}
- system_message(elgg_echo("generic_comment:notdeleted"));
+ register_error(elgg_echo("generic_comment:notdeleted"));
forward($entity->getURL());
?> \ No newline at end of file