]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Avoid using global variables 1526/head
authorKeith Carangelo <mail@kcaran.com>
Mon, 31 Aug 2020 13:20:03 +0000 (09:20 -0400)
committerGitHub <noreply@github.com>
Mon, 31 Aug 2020 13:20:03 +0000 (09:20 -0400)
Co-authored-by: ArthurHoaro <arthur@hoa.ro>
application/render/PageBuilder.php

index 217036392802f26f05801e22439df08eff0d9e13..c52e3b76143530343f5da67ce32e9f74a805d236 100644 (file)
@@ -149,7 +149,7 @@ class PageBuilder
 
         $this->tpl->assign('formatter', $this->conf->get('formatter', 'default'));
 
-        $this->tpl->assign('links_per_page', $_SESSION['LINKS_PER_PAGE']);
+        $this->tpl->assign('links_per_page', $this->session['LINKS_PER_PAGE']);
 
         // To be removed with a proper theme configuration.
         $this->tpl->assign('conf', $this->conf);