Skip to content

Commit b09c9a1

Browse files
committed
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.
1 parent a5b2764 commit b09c9a1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

interface/lib/app.inc.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,11 @@ public function load_language_file($filename) {
186186
public function tpl_defaults()
187187
{
188188
$this->tpl->setVar('app_title', $this->_conf['app_title']);
189-
$this->tpl->setVar('app_version', $this->_conf['app_version']);
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+
}
190194
$this->tpl->setVar('app_link', $this->_conf['app_link']);
191195
if(isset($this->_conf['app_logo']) && $this->_conf['app_logo'] != '' && @is_file($this->_conf['app_logo'])){
192196
$this->tpl->setVar('app_logo', '<img src="'.$this->_conf['app_logo'].'">');
@@ -218,4 +222,4 @@ public function tpl_defaults()
218222
//* possible future = new app($conf);
219223
$app = new app();
220224

221-
?>
225+
?>

0 commit comments

Comments
 (0)