[BUGFIX] Recycler ignores depth setting

The recycler currently ignores the depth
setting, because of a wrong type check
since the migration to mysqli.

Fixes: #48997
Releases: 6.2, 6.1
Change-Id: Ib7a4eb1fc68468ce09944bb9342e070a6ab3860f
Reviewed-on: https://review.typo3.org/21321
Reviewed-by: Wouter Wolters
Reviewed-by: Alexander Opitz
Tested-by: Alexander Opitz
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
[TASK] Allow sys_category in rootpage

Allow sys_category records to be stored in the rootpage. (pid=0)

Resolves: #47530
Releases: 6.2, 6.1, 6.0
Change-Id: Ie71a13ec9a1be65c57e28fff63f003fc5caa6ac1
Reviewed-on: https://review.typo3.org/20123
Reviewed-by: Markus Klein
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Oliver Hader
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
[BUGFIX] List Module - Reference count limited to 20

The reference count in the list view is limited
to 20. Use the extended view to render the counter.

Fixes: #49004
Releases: 6.2, 6.1, 6.0
Change-Id: I295f3c5ea93c5cad5e5f64ba4bfd15a8f9193e61
Reviewed-on: https://review.typo3.org/21323
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
[BUGFIX] Missing file extension class with "file links" type

The content element type "file links" can't render
the the css class for the file extension, because
it uses a non-existing reference from pre-FAL
times. You can find the specific css class on the
generated list item.

Fixes: #48996
Releases: 6.2, 6.1, 6.0
Change-Id: I3031770a6741a331647f3bd5699ea1a2c0d444a9
Reviewed-on: https://review.typo3.org/21318
Reviewed-by: Philipp Gampe
Tested-by: Philipp Gampe
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
[BUGFIX] False-Positives in SQL comparison

When one has e.g. a field "foo INT(11) DEFAULT '0' NOT NULL" in
it's ext_tables.sql definition, the comparison will always complain
about that field, since the underlying DB lists this field as "int(11)"
which is lowercased.

This integrates a regex that lowercases the field types before
comparing the field from the definition against the existing field.

Change-Id: If76abbbca56d0ef0ab796a7f4e6bee1197ac39e6
Resolves: #41344
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Reviewed-on: https://review.typo3.org/19630
Tested-by: Dmitry Dulepov
Tested-by: Wouter Wolters
Reviewed-by: Dmitry Dulepov
Reviewed-by: Markus Klein
Reviewed-by: Wouter Wolters
[TASK] Move t3lib/csconvtbl && t3lib/unidata

Move the 2 folders t3lib/csconvtbl && t3lib/unidata to
sysext/core/Resources/Private/Charsets/

Change-Id: If721bfe5ab7887f67ca774ae5a409d6f67ef009e
Resolves: #49005
Releases: 6.2
Reviewed-on: https://review.typo3.org/21326
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
[BUGFIX] Avoid double wrap in css_styled_content

Since TYPO3 6.0, USER objects have stdWrap property. The
various render methods of css_styled_content still call
stdWrap themselves, resulting in a double wrap.

Remove the stdWrap calls in css_styled_content render methods.

Resolves: #49051
Releases: 6.0, 6.1, 6.2
Change-Id: I3092990a4d1efb12597dc543c222a727135d63ec
Reviewed-on: https://review.typo3.org/21358
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Francois Suter
Tested-by: Francois Suter
[BUGFIX] Fix missing single quotes in SchemaMigratorTest

Change-Id: I452252096e39d8986dfa414016011d16f33523b8
Resolves: #49072
Related: #41344
Releases: 6.2
Reviewed-on: https://review.typo3.org/21371
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
[BUGFIX] Do not add category to empty table names

If the $GLOBALS['TYPO3_CONF_VARS']['SYS']['defaultCategorizedTables']
is empty or you have empty strings between commas then we try to add
empty tablenames to the table definitions.

This is fixed by setting removeEmptyValues to true in trimExplode
and adding a RuntimeException to the add function to prevent
others (extensions) breaking the functionality.

Resolves: #48381
Releases: 6.2, 6.1
Change-Id: I4a8d43a0ff75da298ace4f1d33a5dcf2d2ac569f
Reviewed-on: https://review.typo3.org/20938
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Peter Niederlag
Tested-by: Peter Niederlag
[BUGFIX] findByUid should respect query settings of repository

Prior to 6.1 findByUid built its own query which respected
the settings of its repository. Now findByUid just fetches
the object from the persistence manager which builds its own
query without respecting the query setting of the repository.

This leads to the error that the user isn't able to fetch
hidden records by uid any more. Therefore the
old behaviour of the repository must be used.
An according deprecation hint is added.

Releases: 6.2, 6.1
Resolves: #48571
Change-Id: Ic9a48d5d06f20b2ab8032c39eecb89cd52f898af
Reviewed-on: https://review.typo3.org/21171
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
[BUGFIX] Repair broken unit tests

In patch 21171 some tests broke due to forgotten adjustments after
code change.
This patch brings the missing adjustment.

Releases: 6.2, 6.1
Resolves: #49100
Relates: #48571
Change-Id: I9a07e14ea050fad95bcc424ad07afc54f6aea1e1
Reviewed-on: https://review.typo3.org/21389
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Tested-by: Philipp Gampe
Reviewed-by: Philipp Gampe
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
[TASK] Cleanup ChangeLog

Remove mistakenly introduced submodule history in 6.2.0alpha1
release.

Resolves: #49110
Releases: 6.2
Change-Id: I00cb44c5ff718a2bf53f61c5ce7cdf778c783325
Reviewed-on: https://review.typo3.org/21403
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
[BUGFIX] Insert rows only once in exec_INSERTmultipleRows

For native handler types multiple rows can be inserted using the mysql
INSERTmultipleRows API call. When another handler was used, the operation
was done twice, due to a missing else after the native handler condition.
This resulted in two database records for every INSERT statement.

The patch adds the missing else branch for the condition, preventing
the second run that was only meant to handle non-native handler types.

Change-Id: Ibab98a0c73b379bac063c8d1c19e30e93f38faf4
Resolves: #48220
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Related: #34327
Reviewed-on: https://review.typo3.org/21085
Tested-by: Alexander Opitz
Reviewed-by: Alexander Opitz
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
[BUGFIX] compressJs returns wrong filenames

If you enable
    config.concatenateJs = 1
    config.compressJs = 1
then the uncompressed version of the file is linked.

This does not change much, because compression is disabled and the files
will always be uncompressed, however the right link should be generated.

The allows extension to override the compress method and implement
compression without fixing the rest of the code.

The bug is a regression introduced with: #27694 (4.6).

Return the correct filename by overriding the filename with the returned
value of compressJsFile.

Resolves: #48213
Related: #27694
Releases: 6.2, 6.1, 6.0, 4.7
Change-Id: I1f65576db8084b54f9e5a13947ced258eef893d7
Reviewed-on: https://review.typo3.org/20845
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
[BUGFIX] Fix template rootline for translated pages

The TypoScript template rootline in the Frontend will not be
changed any more if a different sys_language_uid is used.

The data of the current rootLine will be overwritten with the
translated rootLine data.

Resolves: #48300
Releases: 6.2, 6.1
Change-Id: I38bd4a6f3d3c2f15712003b1d1a1334284ebe9b0
Reviewed-on: https://review.typo3.org/21174
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
[TASK] Move express-install to contrib (flowplayer)

To resolve /t3lib few more files should be moved:
Moves flowplayer styles for express-install to contrib.

Change-Id: I8d987774c9ff2c9ab13f86ab6086c1d7fb608afa
Resolves: #49151
Releases: 6.2
Reviewed-on: https://review.typo3.org/21450
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Markus Klein
Tested-by: Markus Klein
[BUGFIX] Illegal string offset 'translations' in DatabaseRecordList

The return value of TranslationConfigurationProvider->translationInfo
normally is an array, but it is a string in case of an error.
Move the line below the is_array() check, because it is only needed
inside.

Fixes: #47103
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Change-Id: Ia781eae987d9295bc2b299f83c087669c96dfd00
Reviewed-on: https://review.typo3.org/19779
Reviewed-by: Dmitry Dulepov
Reviewed-by: Alexander Opitz
Reviewed-by: Heiko Kromm
Tested-by: Heiko Kromm
Reviewed-by: Markus Klein
Tested-by: Markus Klein
[BUGFIX] Allow non-Admins to delete Records finally

This patch adds the posibility for non Admins to delete
records finally in the recycler.

Change-Id: I1fda11d621403758f4d78b7fa8f730d7b47d79a7
Fixes: #34156
Releases: 6.2, 6.1, 6.0, 4.7, 4.5
Reviewed-on: https://review.typo3.org/10480
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
[TASK] Move video-js to contrib

To resolve /t3lib few more files should be moved:
Moves video-js styles controls to contrib.

Change-Id: I648d3bdd17ed0414e6ef1041f3630c343c73747d
Resolves: #49152
Releases: 6.2
Reviewed-on: https://review.typo3.org/21451
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[FEATURE] Allow custom record list in element browser

Introduces a class variable and a setter for a custom record list
instance in the element browser that can be used to override the
default element browser recordlist.

Resolves: #49037
Releases: 6.2
Change-Id: I41fd3a33f70e72aedef9362ee6bf67de9dcde8ac
Reviewed-on: https://review.typo3.org/21347
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Philipp Gampe
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer