You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
case'ACL_NOT_SET': $message = 'You do not have the privilege to delete comments.'; break;
11
-
case'NOT_FOUND': $message = 'Cannot find comment by that id.'; break;
12
-
case'NOT_LOGGED_IN': $message = 'You must be logged in to delete comments.'; break;
13
-
case'INTERNAL_ERROR': $message = 'An internal error occurred while processing your request. Our staff have been notified of the issue. Try again later.'; break;
11
+
caseDeleteModel::ERROR_ACL_NOT_SET: $message = 'You do not have the privilege to delete comments.'; break;
12
+
caseDeleteModel::ERROR_NOT_FOUND: $message = 'Cannot find comment by that id.'; break;
13
+
caseDeleteModel::ERROR_NOT_LOGGED_IN: $message = 'You must be logged in to delete comments.'; break;
14
+
caseDeleteModel::ERROR_INTERNAL: $message = 'An internal error occurred while processing your request. Our staff have been notified of the issue. Try again later.'; break;
case'ACL_NOT_SET': $message = 'You do not have the privilege to edit this comment.'; break;
12
-
case'NOT_FOUND': $message = 'Cannot find comment by that id.'; break;
13
-
case'NOT_LOGGED_IN': $message = 'You must be logged in to edit comments.'; break;
14
-
case'INTERNAL_ERROR': $message = 'An internal error occurred while processing your request. Our staff have been notified of the issue. Try again later.'; break;
12
+
case EditModel::ERROR_ACL_NOT_SET: $message = 'You do not have the privilege to edit this comment.'; break;
13
+
case EditModel::ERROR_EMPTY_CONTENT: $message = 'You must submit a comment with at least 1 character.'; break;
14
+
case EditModel::ERROR_NOT_FOUND: $message = 'Cannot find comment by that id.'; break;
15
+
case EditModel::ERROR_NOT_LOGGED_IN: $message = 'You must be logged in to edit comments.'; break;
16
+
case EditModel::ERROR_INTERNAL: $message = 'An internal error occurred while processing your request. Our staff have been notified of the issue. Try again later.'; break;
0 commit comments