Skip to content

Commit

Permalink
Fix to load default right page correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
iliajie committed Mar 29, 2021
1 parent aec5eb1 commit 57fd79a
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion authentic-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1765,7 +1765,7 @@ sub settings_get_select_default_module
my @modules = get_available_module_infos();
my $select = ui_select($name,
$value,
[["", ""], map {[$_->{'dir'}, $_->{'desc'}]}
[["", $theme_text{'theme_xhred_titles_dashboard'}], map {[$_->{'dir'}, $_->{'desc'}]}
sort {$a->{'desc'} cmp $b->{'desc'}} @modules
]);
return $select;
Expand Down
1 change: 1 addition & 0 deletions config
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ inframe=0
noindex=1
beta_updates=0
nolinks=1
csp_headers=script-src 'self' 'unsafe-inline' 'unsafe-eval'
2 changes: 1 addition & 1 deletion theme.info
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
desc=Authentic Theme
longdesc=Webmin/Usermin/Virtualmin/Cloudmin theme based on Bootstrap and Font Awesome (https://github.com/authentic-theme/authentic-theme)
version=19.74-RC4
mversion=47
mversion=48
depends=1.974 1.824
webmin=1
usermin=1
2 changes: 1 addition & 1 deletion unauthenticated/css/bundle.min.css

Large diffs are not rendered by default.

Binary file modified unauthenticated/css/bundle.min.css.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions unauthenticated/js/bundle.min.js

Large diffs are not rendered by default.

Binary file modified unauthenticated/js/bundle.min.js.gz
Binary file not shown.
8 changes: 7 additions & 1 deletion xhr-lib.pl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#
use strict;

our (%in);
our (%in, %gconfig);

sub xhr
{
Expand All @@ -30,6 +30,12 @@ sub xhr
@menu = (@menu, @submenu);
$data{'menu'} = \@menu;
}

}

# Returns default goto if set
if ($action eq 'goto') {
$data{'gotomodule'} = $gconfig{'gotomodule'};
}

# Returns requested navigation
Expand Down

0 comments on commit 57fd79a

Please sign in to comment.