Skip to content

Commit

Permalink
Fix all labels for plugins on edit page http://www.virtualmin.com/nod…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Sep 3, 2012
1 parent 7348b4e commit 326af52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lang/en
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ feat_name=SQLite Databases
feat_echeck=The command $1 needed to create SQLite databases is not installed.
feat_losing=All SQLite databases owned by this virtual server will be deleted.
feat_label=Allow SQLite databases?
feat_label2=SQLite databases
feat_eunix=SQLite databases cannot be created in a server without a Unix user
feat_edir=SQLite databases cannot be created in a server without a home directory

Expand Down
3 changes: 2 additions & 1 deletion virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ sub feature_losing
# editing form
sub feature_label
{
return $text{'feat_label'};
local ($edit) = @_;
return $edit ? $text{'feat_label2'} : $text{'feat_label'};
}

# feature_check()
Expand Down

0 comments on commit 326af52

Please sign in to comment.