Fix up (more) typos: $module->name --> $module_name
Add to ORM::_initialize() override to set foreign model names if not defined.
Fix typo in Gallery class: "allowed" --> "$allowed"
Upgrade gallery module to v59 to rebuild var .htaccess files for new FileProxy routing.
Revise GalleryTask to call Access::update_htaccess_files() only once per album.
Big arg() / arg_required() / arg_optional() rewrite.
- K3 controller actions neatly take things from Request (param, query, post, url)
and put them in Response (headers, body, send_file), so arg should follow suit
instead of being in the Controller class.
- arg_required() is used 92 times and arg() just 1 time, so the syntax should
favor the much more common case.
- move Controller::arg_required() to Request::arg().
- move Controller::arg() to Request::arg_optional().
- allow both functions to return full arrays
(logically, arg() requires something to be there and arg_optional() doesn't).
- move args array initialization to Controller::_init_args().
- add $force argument to _init_args() to allow a forced re-initialization.
- fix bug where no args would map to array(0 => "") instead of array().
Change 92 calls to arg_required() and 1 call to arg() to reflect changes.