correct singual usage of type in elgg_get_entities_* functions
correct singual usage of subtype in elgg_get_entities_* functions
correct singual usage of type in elgg_get_entities_* functions - found
more bad usage
better usage of 'limit' in cases where this is irrelevant
Fixes #2554 - Adds search support for sorting and order
Fixes #3123 - Correct name length control in datalist_get and set_config
Merge pull request #495 from Srokap/ticket_3123

Fixes #3123 - Correct name length control in datalist_get and set_config
Check if the  is a valid viewtype

Signed-off-by: Luciano Lima <lucianomlima@ymail.com>
updated the changes file based on development so far
Set the error code when user authentication fail

Signed-off-by: Luciano Lima <lucianomlima@ymail.com>
Fixes #5022 not setting forward on ajax calls for walled garden
Add a lightobx alike instead use popups.

Add a lightobx alike instead use popups while using the TinyMCE controls, for example, when you try to insert an image, watch the HTML content, etc.
Merge pull request #482 from Srokap/ticket_2554

Fixes #2554 - Adds search support for sorting and order
Update mod/messages/start.php

We had an Elgg user named Chris Read with username 'read'. Once he registered, people's messages stopped working because hitting a message in your inbox was a url like: [site_name]/messages/read/459 - and the message code, supporting the old URL format, looked up the parameter right after messages and did a lookup on that word. So, since it got a user, redirected to his inbox. Yipes! So I put in some code checking that the parameter really is your username, so it would work for Chris, but not for anyone else. It works fine now.
Handle logged out case, simplify logic
Merge branch 'fork-508' into 1.8
Merge pull request #398 from jeabakker/#4880

#4880 - incorrect usage of elgg_get_entities_* parameters
Doc fixes and inline type hints for variables (big static analysis cleanup)
Small changes to remove static analysis noise and simplify flow
small changes to previous commit from Steve's cleanup