Ensure auth still happens if empty username/password are given.
@see Validation::$_empty_rules, Validation::check()
- add "not_empty" rules to login and reauthenticate controllers.
- use same error messages as typical invalid entries.
Ensure that we use the "is_ajax_request" Session parameter.
Now re-auth with the server_add dialog works properly.
Add Formo::merge_groups() to, well, merge two groups.
Make use of model/other groups consistent in Comments and Items controllers.
- use one group for ORM values, one for other stuff (tags, recaptcha, submit...)
- use Formo::merge_groups() to merge them just before presentation.
This does a better job of partitioning the model, which seems like a cleaner
and more robust approach.
Fix DB::select() syntax with arrays to "DB::select(array($column, $alias))"
Fix select in Hook_GalleryTask::find_missing_access_caches_limited().
Be more specific with select/where fields when using ORM::with().
Many of these changes may be unnecessary, but it seems easier to be more
precise across the board instead of carefully debugging each case individually.
Change "Fix your Gallery" task go faster and be more comprehensive.
- optimize MPTT pointer rebuilding for leaf nodes (i.e. non-albums).
- reverse order_by to try and preserve existing tree ordering.
- reset item level while we're here.
- use "$stack[] = 123" instead of array_push($stack, 123) since it's faster.