]> git.agnieray.net Git - galette.git/commitdiff
getGlobals is marked internal, use another method
authorJohan Cwiklinski <johan@x-tnd.be>
Mon, 22 Apr 2024 20:20:09 +0000 (22:20 +0200)
committerJohan Cwiklinski <johan@x-tnd.be>
Mon, 22 Apr 2024 20:20:09 +0000 (22:20 +0200)
(Cache twig file rely  on mergeGLobals)

galette/lib/Galette/Core/Pagination.php

index 66a5b2130502c668cdf35d770b48b6b1ee1241dd..bebdca6c9676643bd9922b2fa2e36531c84bcbff 100644 (file)
@@ -349,12 +349,12 @@ abstract class Pagination
             '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;