aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKeith Carangelo <mail@kcaran.com>2020-08-31 09:20:03 -0400
committerGitHub <noreply@github.com>2020-08-31 09:20:03 -0400
commit4479aff18f4ff80e274b52548c08e9ed9379bd51 (patch)
tree884886360fda125e62d7835168d533dcab2dd452
parente813934ae18cd57632e0714aacb6d754ad78eabd (diff)
downloadShaarli-4479aff18f4ff80e274b52548c08e9ed9379bd51.tar.gz
Shaarli-4479aff18f4ff80e274b52548c08e9ed9379bd51.tar.zst
Shaarli-4479aff18f4ff80e274b52548c08e9ed9379bd51.zip
Avoid using global variables
Co-authored-by: ArthurHoaro <arthur@hoa.ro>
-rw-r--r--application/render/PageBuilder.php2
1 files changed, 1 insertions, 1 deletions
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
149 149
150 $this->tpl->assign('formatter', $this->conf->get('formatter', 'default')); 150 $this->tpl->assign('formatter', $this->conf->get('formatter', 'default'));
151 151
152 $this->tpl->assign('links_per_page', $_SESSION['LINKS_PER_PAGE']); 152 $this->tpl->assign('links_per_page', $this->session['LINKS_PER_PAGE']);
153 153
154 // To be removed with a proper theme configuration. 154 // To be removed with a proper theme configuration.
155 $this->tpl->assign('conf', $this->conf); 155 $this->tpl->assign('conf', $this->conf);