Commit b09c9a1a authored by tbrehm's avatar tbrehm
Browse files

Removed version number when no user is logged in. Please do not undo this. If...

Removed version number when no user is logged in. Please do not undo this. If you do not understand why something has been changed by me, please ask.
parent a5b27644
......@@ -186,7 +186,11 @@ class app {
public function tpl_defaults()
{
$this->tpl->setVar('app_title', $this->_conf['app_title']);
$this->tpl->setVar('app_version', $this->_conf['app_version']);
if(isset($_SESSION['s']['user'])) {
$this->tpl->setVar('app_version', $this->_conf['app_version']);
} else {
$this->tpl->setVar('app_version', '');
}
$this->tpl->setVar('app_link', $this->_conf['app_link']);
if(isset($this->_conf['app_logo']) && $this->_conf['app_logo'] != '' && @is_file($this->_conf['app_logo'])){
$this->tpl->setVar('app_logo', '<img src="'.$this->_conf['app_logo'].'">');
......@@ -218,4 +222,4 @@ class app {
//* possible future = new app($conf);
$app = new app();
?>
?>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment