From: Keith Carangelo Date: Mon, 31 Aug 2020 13:20:03 +0000 (-0400) Subject: Avoid using global variables X-Git-Tag: v0.12.0-beta-1~27^2 X-Git-Url: https://git.immae.eu/?p=github%2Fshaarli%2FShaarli.git;a=commitdiff_plain;h=4479aff18f4ff80e274b52548c08e9ed9379bd51 Avoid using global variables Co-authored-by: ArthurHoaro --- diff --git a/application/render/PageBuilder.php b/application/render/PageBuilder.php index 21703639..c52e3b76 100644 --- a/application/render/PageBuilder.php +++ b/application/render/PageBuilder.php @@ -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);