I let php-cs-fixer format the code.. seems that they worked on it so the
most ugly line breaks are gone.
And hopefully we Travis won't get angry any more.
:-)
When include is not passed to `artists` or `albums` API function, it
will default to `NULL`. Make it default to `[]` to avoid a message in
the error log.
Return total count of items in API actions which make use of `filter`
and `offset` parameters. This way, the user of the API can know easily
if he should query for more items or not, and implement a pagination
mechanism on his side.
Invalid URL type for input fields for paths
Some input fields were wrongly assigned a "url" type and browsers were
enforcing a valid URL to be put in these fields. Set them back to text.
Closes#1356.
Fix coding guidelines incoherences. Code should match PSR1/2 now, and
php-cs is set to check it on each commit.
Also fixed the Git hook to take into account only added, modified,
copied and renamed files (preventing errors when trying to check deleted
files).
Closes#1260.
Includes are specified by the `include[]` array `GET` parameter.
Supported includes as of now are:
* For `artists` and `artist` actions, you can include `albums` and/or `songs`.
* For `albums` action, you can include `songs`.
* Provide artists art in the `artists` method.
* Add `name` as an alias for `title` attribute for `songs` and stuff.
* Add a `.htaccess` file to enable CORS headers.
Closes#1292.
...due to changes on Transifex and the re-pluralization.
Some small changes to harmonize the texts and make them more
clear/userfriendly.
Fixes#1301
:-)
Fixed: plurals aren't recognized by `gather-messages.sh` since #1239
Translations and Translation catalog updated to the latest state and
plurals are readded to the POT.
Wrong gettext function calls
There were some issues when gettext is not installed on the system, due
to direct function calls to gettext and not to the encapsulated ones.
Closes#1211.