[TASK] Mimetype-detection without finfo_file

Function finfo_file() is only available in PHP 5.3+
or with pecl-ext fileinfo. Fall back to using
mime_content_type() instead, if necessary.

Resolves: #46126
Releases: 4.5
Change-Id: I2d0fc91396019f546467d6f9fd5718d6646614e4
Reviewed-on: https://review.typo3.org/18814
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Revert "[BUGFIX] Fix wrong column title in web>list for field colpos"

This reverts commit 7a1aaf727d04f56252ca173a59489d2f77f9655a

The patch triggers warnings and errors in multiple extensions. Digging
into the details shows the implementation is neither finished nor
stable. See issue #25113 for a detailed analysis.

Change-Id: I07153613ecc062ecc777a45962f11d0b37cf8730
Related: #25113
Fixes: #45833
Releases: 6.1, 6.0, 4.7, 4.6, 4.5
Reviewed-on: https://review.typo3.org/18943
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[BUGFIX] Content elements in wrong column in page module

If working on workspaces, it might happen that content elements
just appear in the wrong column. The reason is, that live(!)
content elements are selected using a specific column value and
then are overlaid with workspace data.

If the column value has been modified in a workspace, this is
currently just ignored during rendering.

Change-Id: I148ca1b023226f2f99417b3baf238b72346e721f
Fixes: #44470
Releases: 6.1, 6.0, 4.7, 4.6, 4.5
Reviewed-on: https://review.typo3.org/17637
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
[BUGFIX] Make sure XML parser is created everytime when needed

Currently, EM's MirrorXmlPushParser, which is based on ext/xml,
is not properly working. The constructor creates the parser and
within parseXML() method the parser resource is freed.
However, when clicking on retrieve/update button method
parseXML() is invoked multiple times which makes subsequent calls
fail.

Creating the parser is now done within parseXML() method.

Resolves: #25292
Releases: 6.1, 6.0, 4.7, 4.5
Change-Id: I7c6c15f65d08fb0264d7d66cc584cbe7ff423b45
Reviewed-on: https://review.typo3.org/18886
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[BUGFIX] Fix PHP warning in BackendUtility::lockRecords

This methods triggers a warning "Illegal String offset"
with PHP 5.4, because $GLOBALS['BE_USER']->user['uid'] is accessed
even if a user is not logged in.

Additionally a delete query is executed in this case which
does not make sense at all.

Properly check if a user is logged in before executing any
functionality in this method.

Fixes: #46361
Releases: 4.5, 4.7, 6.0, 6.1
Change-Id: I370e0a8610a55b3d684bef95d7c6905eaaaacbab
Reviewed-on: https://review.typo3.org/18994
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[BUGIFX] Extra output blocks backend thumbnails

If some inclusion causes output when viewing image thumbnails
in the backend, the output will be broken. Adding a call to
ob_clean() ensures that this does not happen.

Resolves: #31953
Releases: 4.5, 4.7
Reviewed-on: https://review.typo3.org/19004
Reviewed-by: Francois Suter
Tested-by: Francois Suter
Change-Id: Ic540939d2a39b0adeb4427a6e772ad506686378d
Reviewed-on: https://review.typo3.org/19005
[TASK] Raise submodule pointer

Change-Id: If6e29779ae1fde4febd149a05b582bbd5b5a992b
Reviewed-on: https://review.typo3.org/19025
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[BUGFIX] Fix translation overlay in RECORDS

When RECORDS content object is used with pages as table
no translation overlay is done.

Fix that by adding a check and selecting the proper
overlay method in this case.

Resolves: #42279
Releases: 4.5, 4.6, 4.7, 6.0

Change-Id: I9be903c06abe8532390f814e2ff29825003359d7
Reviewed-on: https://review.typo3.org/17184
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[BUGFIX] fallbackRendering is always called

When rendering textpic, the content object rendering is always called for
the Typoscript setting fallbackRendering which is not always defined.
Change-Id: I2ebfffd2ece8022136c4fcc8d0e12d552486dd32
Fixes: #44732
Releases: 6.1, 6.0, 4.7, 4.5
Reviewed-on: https://review.typo3.org/19197
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[BUGFIX] Warning in list module

The function addElement needs to have an array as third argument.

Change-Id: Iefb86fc6399a6aaee58f66c712ac81743c1bd2ac
Fixes: #39678
Releases: 4.5, 4.6, 4.7, 6.0
Reviewed-on: https://review.typo3.org/13875
Reviewed-by: Stefan Neufeind
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer