File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff 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+ ?>
You can’t perform that action at this time.
0 commit comments