Skip to content

Commit

Permalink
Avoid using globals
Browse files Browse the repository at this point in the history
  • Loading branch information
chrizzor committed Jul 15, 2024
1 parent c8d37ae commit b463076
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/PageViewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ protected function getScore(int $page, $specificDoc = null)
if ($this->settings['useInternalProxy']) {
// Configure @action URL for form.
$uri = $this->uriBuilder->reset()
->setTargetPageUid($GLOBALS['TSFE']->id)
->setTargetPageUid($this->pageUid)
->setCreateAbsoluteUri(!empty($this->settings['forceAbsoluteUrl']) ? true : false)
->setArguments(
[
Expand Down

0 comments on commit b463076

Please sign in to comment.