From 326af5254ac7e4a6e2856a12b0593975c2e6df55 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Mon, 3 Sep 2012 10:11:13 -0700 Subject: [PATCH] Fix all labels for plugins on edit page http://www.virtualmin.com/node/23237 --- lang/en | 1 + virtual_feature.pl | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lang/en b/lang/en index 1c6a0b2..b546f90 100644 --- a/lang/en +++ b/lang/en @@ -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 diff --git a/virtual_feature.pl b/virtual_feature.pl index 1311b66..00c77ac 100755 --- a/virtual_feature.pl +++ b/virtual_feature.pl @@ -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()