Skip to content

Commit

Permalink
Fix top nav with no parent site.
Browse files Browse the repository at this point in the history
  • Loading branch information
csev committed May 15, 2024
1 parent 811d664 commit 25d7c67
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/UI/Output.php
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,11 @@ function defaultMenuSet() {

$R = $CFG->wwwroot . '/';
$set = new \Tsugi\UI\MenuSet();
$set->setHome($CFG->servicename, $CFG->apphome);
if ( is_string($CFG->apphome) ) {
$set->setHome($CFG->servicename, $CFG->apphome);
} else {
$set->setHome($CFG->servicename, $R);
}
$set->addLeft(_m('Tools'), $R.'store');
if ( $this->session_get('id') ) {
$set->addLeft(_m('Settings'), $R . 'settings');
Expand Down

0 comments on commit 25d7c67

Please sign in to comment.