Skip to content

Commit

Permalink
getGlobals is marked internal, use another method
Browse files Browse the repository at this point in the history
(Cache twig file rely  on mergeGLobals)
  • Loading branch information
trasher committed Apr 22, 2024
1 parent 31f992c commit d5c05de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions galette/lib/Galette/Core/Pagination.php
Expand Up @@ -349,12 +349,12 @@ protected function getHref(int $page): string
'value' => $page
];

if ($this->view->getEnvironment()->getGlobals()['cur_subroute']) {
$args['type'] = $this->view->getEnvironment()->getGlobals()['cur_subroute'];
if ($this->view->getEnvironment()->mergeGlobals([])['cur_subroute']) {
$args['type'] = $this->view->getEnvironment()->mergeGlobals([])['cur_subroute'];
}

$href = $this->routeparser->urlFor(
$this->view->getEnvironment()->getGlobals()['cur_route'],
$this->view->getEnvironment()->mergeGlobals([])['cur_route'],
$args
);
return $href;
Expand Down

0 comments on commit d5c05de

Please sign in to comment.