aboutsummaryrefslogtreecommitdiff
path: root/actions/comments/add.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/comments/add.php')
-rw-r--r--actions/comments/add.php4
1 files changed, 2 insertions, 2 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"));
}