Add wrapper method for getting line counts
Count lines on the fly if count is not available
Allow error reporting without precalculated line counts

As these can now be done on the fly
Fixed bug where send error report not being called
Bug #4135 When searching, error "No database selected"
Fix typo
Translated using Weblate (Italian)

Currently translated at 90.0% (2469 of 2744)
Merge remote-tracking branch 'origin/master'
Merge pull request #728 from nijel/autolinecount

Automatic counting of lines for error reporting
Merge pull request #730 from m0hamed/error_report_fix

Fixed bug where send error report not being called
4.1.0-beta1
Fixed error submission using curl

The problem is that curl inserts Expect: header which server does not
support.

More details at:

http://pilif.github.io/2007/02/the-return-of-except-100-continue/
http://stackoverflow.com/questions/3755786/php-curl-post-request-and-error-417
Translated using Weblate (Romanian)

Currently translated at 52.9% (1452 of 2744)
Merge remote-tracking branch 'origin/master'
Enable allow_url_fopen backend for error reporting
Make error reporting work with PHP older than 5.4

This is workaround for #4113 with cost of having not readable JSON shown
to user in report detail.
Fixes many coding style "line too long"
Fix coding style
Bug #4136
Undefined index