Skip to content

Commit

Permalink
[BUGFIX] Sort upgrade documentation by filename
Browse files Browse the repository at this point in the history
Restore sorting of documentation files based on their filename
like it was available up to TYPO3 version 8.7.

Resolves: #87390
Releases: master, 9.5
Change-Id: I2ab75d6b750b3a3003f00ed174c0d3dfb865bec9
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63913
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Susanne Moog <look@susi.dev>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Susanne Moog <look@susi.dev>
  • Loading branch information
josefglatz authored and susannemoog committed Mar 25, 2020
1 parent 295873f commit ed216f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Expand Up @@ -1247,7 +1247,6 @@ protected function getDocumentationFiles(string $version): array
$documentationFiles = $documentationFileService->findDocumentationFiles(
str_replace('\\', '/', realpath(ExtensionManagementUtility::extPath('core') . 'Documentation/Changelog/' . $version))
);
$documentationFiles = array_reverse($documentationFiles);

$queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('sys_registry');
$filesMarkedAsRead = $queryBuilder
Expand Down
Expand Up @@ -341,6 +341,7 @@ protected function getDocumentFinder(): Finder
$finder = new Finder();
$finder
->depth(0)
->sortByName()
->name('/^(Feature|Breaking|Deprecation|Important)\-\d+.+\.rst$/i');

return $finder;
Expand Down

0 comments on commit ed216f7

Please sign in to comment.