- $this->tpl->assign('version', shaarli_version);
- $this->tpl->assign('scripturl', index_url($_SERVER));
- $this->tpl->assign('pagetitle', 'Shaarli');
- $this->tpl->assign('privateonly', !empty($_SESSION['privateonly'])); // Show only private links?
- if ($this->conf->exists('general.title')) {
- $this->tpl->assign('pagetitle', $this->conf->get('general.title'));
- }
+ $this->tpl->assign('version', SHAARLI_VERSION);
+ $this->tpl->assign(
+ 'version_hash',
+ ApplicationUtils::getVersionHash(SHAARLI_VERSION, $this->conf->get('credentials.salt'))
+ );
+ $this->tpl->assign('index_url', index_url($_SERVER));
+ $visibility = ! empty($_SESSION['visibility']) ? $_SESSION['visibility'] : '';
+ $this->tpl->assign('visibility', $visibility);
+ $this->tpl->assign('untaggedonly', !empty($_SESSION['untaggedonly']));
+ $this->tpl->assign('pagetitle', $this->conf->get('general.title', 'Shaarli'));