Skip to content

Commit 1721124

Browse files
committed
Fix to drop unnecessary flag and use enabled to test
1 parent 33d3d46 commit 1721124

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

postinstall.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ sub module_install
621621
$brand{'update'} = 1;
622622
$brand{'file'} = "$root_directory/$module_name/images/brand.svg";
623623
$brand{'title'} = $title;
624-
$brand{'mode'} = 'full';
624+
$brand{'enabled'} = 1;
625625
&write_file($brand_info, \%brand);
626626
&unlock_file($brand_info);
627627
}

uninstall.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ sub module_uninstall
2929
if (-r $brand_file) {
3030
my %brand_info;
3131
&read_file($brand_file, \%brand_info);
32-
if ($brand_info{'update'} &&
32+
if ($brand_info{'enabled'} &&
3333
$brand_info{'file'} &&
3434
$brand_info{'file'} =~ /\Q$module_root_directory\E/) {
3535
&unlink_file($brand_file);

0 commit comments

Comments
 (0)