]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/render/PageBuilder.php
Avoid using global variables
[github/shaarli/Shaarli.git] / 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);