This fixes a bug that was causing the http phrase in a known error, that had an http phrase defined to be overridden if it was a standard error code, or if there was an error message. It now is only overwritten if an http phrase is passed to the Frapi_Error constructor.
moved the contents of getParams() into a new method setParams(), which is only called once in the constructor. now getParams() is a simple getter rather than a mixed getter/setter. also removed mixing of $this->request and $this->params
Previously, the fetching of formats enabled was not taking in to account the enabled field. Therefore frapi still processed the request for a disabled format.
The logic now uses the passed reason phrase if there is one, if not it then attempts to lookup a reason phrase based on the http code, if that fails it then uses the error message.
This will help with backwards compatibility if a http reason phrase is not set.
Conflicts: src/frapi/admin/application/languages/en_GB.mo src/frapi/library/Frapi/Controller/Api.php src/frapi/library/Frapi/Controller/Main.php
…r | closes #77