[BUGFIX] Fix log module bootstrap
[Packages/TYPO3.CMS.git] / typo3 / sysext / info / Classes / Controller / InfoModuleController.php
index 6f44a25..b6321ef 100644 (file)
@@ -549,7 +549,13 @@ class InfoModuleController
             $defaultFlashMessageQueue->enqueue($flashMessage);
         } else {
             if (is_callable([$this->extObj, 'main'])) {
-                $this->content .= $this->extObj->main();
+                $main = $this->extObj->main();
+                if ($main instanceof ResponseInterface) {
+                    $stream = $main->getBody();
+                    $stream->rewind();
+                    $main = $stream->getContents();
+                }
+                $this->content .= $main;
             }
         }
     }