Skip to content

Commit

Permalink
Fix the way GPL / pro detection is done
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Mar 26, 2017
1 parent 89e3b0a commit d34bc6b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion module.info
Expand Up @@ -8,7 +8,6 @@ desc_de=Virtualmin Virtuelle Server
desc_fr=Serveurs virtuels Virtualmin
readonly=1
feedback=feedback@webmin.com
virtualmin=pro
desc_tr=Virtualmin Sanal Sunucuları
desc_nl=Virtualmin Virtuele Servers
desc_cz=Virtu�ln� servery Virtualmin
Expand Down
2 changes: 1 addition & 1 deletion virtual-server-lib.pl
Expand Up @@ -48,7 +48,7 @@
}

# For the GPL version, force some features off.
$virtualmin_pro = $module_info{'virtualmin'} eq 'pro' ? 1 : 0;
$virtualmin_pro = $module_info{'version'} =~ /gpl/ ? 0 : 1;
if (!$virtualmin_pro) {
$config{'status'} = 0;
}
Expand Down

0 comments on commit d34bc6b

Please sign in to comment.