diff options
-rw-r--r-- | engine/lib/elgglib.php | 2 | ||||
-rw-r--r-- | js/lib/ajax.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php index 7076ec12d..87866f318 100644 --- a/engine/lib/elgglib.php +++ b/engine/lib/elgglib.php @@ -496,7 +496,7 @@ function sanitise_filepath($path, $append_slash = TRUE) { * 'messages') as well as {@link register_error()} messages ($register = 'errors'). * * @param mixed $message Optionally, a single message or array of messages to add, (default: null) - * @param string $register Types of message: "errors", "messages" (default: messages) + * @param string $register Types of message: "error", "success" (default: success) * @param bool $count Count the number of messages (default: false) * * @return true|false|array Either the array of messages, or a response regarding diff --git a/js/lib/ajax.js b/js/lib/ajax.js index 5e290df6f..6f6ae052f 100644 --- a/js/lib/ajax.js +++ b/js/lib/ajax.js @@ -194,7 +194,7 @@ elgg.action = function(action, options) { var custom_success = options.success || elgg.nullFunction; options.success = function(json, two, three, four) { if (json && json.system_messages) { - elgg.register_error(json.system_messages.errors); + elgg.register_error(json.system_messages.error); elgg.system_message(json.system_messages.success); } |