diff --git a/actions/logged_in/save.php b/actions/logged_in/save.php index 080a9eb..ed6069a 100644 --- a/actions/logged_in/save.php +++ b/actions/logged_in/save.php @@ -15,7 +15,6 @@ global $CONFIG; $error = FALSE; - // check if from is validated if(!IzapBase::hasFormError()) { @@ -74,6 +73,6 @@ } if($error) { - register_error(elgg); + register_error(elgg_Echo('izap-threaded-comments:form_not_validated')); } echo $html_output; \ No newline at end of file diff --git a/languages/en.php b/languages/en.php index f7e7627..243dda4 100644 --- a/languages/en.php +++ b/languages/en.php @@ -17,5 +17,6 @@ 'comments_rss' => 'Subscribe the comments feed', 'rss_page_title' => 'Rss feed for the comments', 'izap-threaded-comments:has_commented_on' => 'has commented on', + 'izap-threaded-comments:form_not_validated' => 'Empty comment', );add_translation('en', $english); \ No newline at end of file