Skip to content

Commit a5b2764

Browse files
author
karailiev
committed
ticket 827
For some reason till has made the version number not to load when no user is logged in. Due to ajax login the version number remains not loaded even after login until the whole page is reloaded. I didn't find any comment why is this done, so I revert it.
1 parent dd2551d commit a5b2764

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

interface/lib/app.inc.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,7 @@ public function load_language_file($filename) {
186186
public function tpl_defaults()
187187
{
188188
$this->tpl->setVar('app_title', $this->_conf['app_title']);
189-
if(isset($_SESSION['s']['user'])) {
190-
$this->tpl->setVar('app_version', $this->_conf['app_version']);
191-
} else {
192-
$this->tpl->setVar('app_version', '');
193-
}
189+
$this->tpl->setVar('app_version', $this->_conf['app_version']);
194190
$this->tpl->setVar('app_link', $this->_conf['app_link']);
195191
if(isset($this->_conf['app_logo']) && $this->_conf['app_logo'] != '' && @is_file($this->_conf['app_logo'])){
196192
$this->tpl->setVar('app_logo', '<img src="'.$this->_conf['app_logo'].'">');
@@ -222,4 +218,4 @@ public function tpl_defaults()
222218
//* possible future = new app($conf);
223219
$app = new app();
224220

225-
?>
221+
?>

0 commit comments

Comments
 (0)