Avoid using global variables

Co-authored-by: ArthurHoaro <arthur@hoa.ro>
This commit is contained in:
Keith Carangelo 2020-08-31 09:20:03 -04:00 committed by GitHub
parent e813934ae1
commit 4479aff18f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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);