[BUGFIX] Use non-deprecated name for filesPerPage option 66/47966/3
authorStephan Großberndt <stephan@grossberndt.de>
Fri, 29 Apr 2016 08:44:45 +0000 (10:44 +0200)
committerJigal van Hemert <jigal.van.hemert@typo3.org>
Fri, 29 Apr 2016 11:04:50 +0000 (13:04 +0200)
Change the configuration name for the filesPerPage option in the file
list module from mod.file_list.filesPerPage to
options.file_list.filesPerPage because using "mod." in user TSconfig
is deprecated.

Resolves: #75976
Related: #72923
Releases: master
Change-Id: I13ad1a0f28b59ebe1fec7ccf4a73eaec0ddb0044
Reviewed-on: https://review.typo3.org/47966
Reviewed-by: Daniel Goerz <ervaude@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Markus Sommer <markussom@posteo.de>
Tested-by: Markus Sommer <markussom@posteo.de>
Reviewed-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
Tested-by: Jigal van Hemert <jigal.van.hemert@typo3.org>
typo3/sysext/core/Documentation/Changelog/master/Feature-72923-ConfigurableFileListSize.rst
typo3/sysext/filelist/Classes/FileList.php

index 0e92f4f..81837aa 100644 (file)
@@ -9,7 +9,7 @@ It is now possible to configure the maximum number of files shown per page in th
 
 .. code-block:: typoscript
 
-   mod.file_list {
+   options.file_list {
       filesPerPage = 40
    }
 
index 375c66a..15be1bf 100644 (file)
@@ -197,7 +197,7 @@ class FileList extends AbstractRecordList
         $this->fileListController = $fileListController;
         $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class);
 
-        $modTSconfig = BackendUtility::getModTSconfig(0, 'mod.file_list');
+        $modTSconfig = BackendUtility::getModTSconfig(0, 'options.file_list');
         if (!empty($modTSconfig['properties']['filesPerPage'])) {
             $this->iLimit = MathUtility::forceIntegerInRange($modTSconfig['properties']['filesPerPage'], 1);
         }