Skip to content
Snippets Groups Projects
Commit a4668f7f authored by Georg Ringer's avatar Georg Ringer Committed by Benni Mack
Browse files

[BUGFIX] Reset variables in SiteListCommand

Reset the variables holding information about locale and status to avoid
showing wrong output.

Resolves: #90334
Releases: master, 9.5
Change-Id: I20cb5847382be28b0aaaf0a8c8afec626cd99c9d
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63180


Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: default avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
Tested-by: default avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarBenni Mack <benni@typo3.org>
parent 3a864452
Branches
Tags
No related merge requests found
......@@ -43,8 +43,6 @@ class SiteListCommand extends Command
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
$locales = [];
$status = [];
$io = new SymfonyStyle($input, $output);
$siteFinder = new SiteFinder();
$sites = $siteFinder->getAllSites();
......@@ -68,6 +66,8 @@ class SiteListCommand extends Command
foreach ($sites as $site) {
$baseUrls = [];
$languages = [];
$locales = [];
$status = [];
foreach ($site->getLanguages() as $language) {
$baseUrls[] = (string)$language->getBase();
$languages[] = sprintf(
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment