Skip to content

Commit

Permalink
[TASK] Replace request object which is no longer a method argument
Browse files Browse the repository at this point in the history
Needed for TYPO3 v13.
  • Loading branch information
fnagel committed Mar 27, 2024
1 parent 3972309 commit 6d8d755
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Classes/Configuration/BackendConfigurationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ class BackendConfigurationManager extends \TYPO3\CMS\Extbase\Configuration\Backe
*
* @todo Rework this: ugly hack but not sure how to solve this in a clean way
*/
protected function getCurrentPageIdFromRequest(ServerRequestInterface $request): int
protected function getCurrentPageIdFromRequest(): int
{
$id = parent::getCurrentPageIdFromRequest($request);
$id = parent::getCurrentPageIdFromRequest();

if (empty($id)) {
$id = (int)($request->getParsedBody()['popViewId'] ?? $request->getQueryParams()['popViewId'] ?? 0);
if (empty($id) && $GLOBALS['TYPO3_REQUEST'] instanceof ServerRequestInterface) {
$id = (int)($GLOBALS['TYPO3_REQUEST']->getParsedBody()['popViewId'] ?? $GLOBALS['TYPO3_REQUEST']->getQueryParams()['popViewId'] ?? 0);
}

return $id;
Expand Down

0 comments on commit 6d8d755

Please sign in to comment.