Change URL to user documentation

$g_manual_url now points to local copy of admin guide.
Fix absolute URLs issue with 'User Documentation' link

This resolves the issue with absolute URLs specified in $g_manual_url
becoming relative on project documentation pages.

Following discussions in the pull request [1], the solution implements
additional logic in the print_doc_menu() function that checks whether
the provided URL is absolute or relative (based on presence of an URL
scheme):
- if relative, makes sure the local path exists
  - if yes, build absolute URL using helper_mantis_url()
  - if not, fall back to the online manual on
    http://www.mantisbt.org/documentation.php
- if absolute, uses the URL as-is without check

Since this is currently the only use case for absolute URLs with
helper_mantis_url() and the documentation feature is deprecated, it made
more sense to have the logic in print_doc_menu() rather than creating a
new API function.

Fixes #16995

[1] https://github.com/mantisbt/mantisbt/pull/144
Allow update of existing project document

Prior to this, it was impossible to update a document's title or
description without uploading a new file, as MantisBT would trigger an
error.

Fixes #17405

Porting a0539b7e32c7dc8301518d857efb887aa43072bc to master
Add error param when updating project doc with empty title

Added missing error_parameter() call so that when attempting to update
an existing project document with an empty Title, the error message
indicates which field is required.

Fixes #17407

Porting 0bea0a0faa14b822e7706a71c3ab7fdd6fad5a13 to master
Remove extract() call on untrusted input

As per recommendation in PHP manual http://php.net/extract, drop use of
extract() on input from $_FILE superglobal.

Porting 085a82e173dd0dff355620213243e10078cc11d6 to master
Fix Mantis Code Standards: use "if(" over "if ("

Follow up fix to Victors timeline commit which pushed
non-standard code following previous commit with commit message:

Fix Mantis Code Standards: use "if(" over "if ("
Fix Mantis Code Standards: use "if(" over "if ("

This covers missed if statements from my previous pass:
In this case my previous pass looked for "if ( " as opposed to "if (X"
Localisation updates from https://translatewiki.net.
Whitespace
Fix SOAP API not sending e-mails

Fixes regression introduced by cea405ccf228fd2c6ac694574a74e87396b14f1f.
Emails are now sent at the end of the SOAP call.

Fixes #17458

Original code form https://github.com/mantisbt/mantisbt/pull/113
Signed-off-by: Damien Regad <dregad@mantisbt.org>
When logging to page, send emails early

This allows logs to include all email log entries

Original code from https://github.com/mantisbt/mantisbt/pull/113
Signed-off-by: Damien Regad <dregad@mantisbt.org>
Fix #17458: SOAP API does not send e-mails
Filter API: add missing table prefix

When building the where clause for free-text search, the filter API did
not prefix the 'summary' column with the table name.

Fixes #17457
Fix #17384: Remove unused twitter language strings

This the patch from grangeway's pull request [1], excluding non-English
language files.

[1] https://github.com/mantisbt/mantisbt/pull/189

Signed-off-by: Damien Regad <dregad@mantisbt.org>
Fix #17376: Perf: use sprintf over utf8_str_pad

Patch from grangeway's original pull request [1].

[1] fixes https://github.com/mantisbt/mantisbt/pull/182

Signed-off-by: Damien Regad <dregad@mantisbt.org>
Ensure all PHPUnit tests are executed on Travis

Fixes #17229

Signed-off-by: Damien Regad <dregad@mantisbt.org>
Fix config file location
Add comment to document added configs' purpose
Enable all tests on Travis

Fixes #17229, https://github.com/mantisbt/mantisbt/pull/165
Fix graph display in advanced summary with MSSQL

Graph « Cumulative by date » is not displayed in Summary > Advanced
Summary, SQL Server complains that it cannot convert varchar to int.

Fixes #17011, https://github.com/mantisbt/mantisbt/pull/142

Signed-off-by: Damien Regad <dregad@mantisbt.org>