summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Aktywator/Setting.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/Aktywator/Setting.cs b/Aktywator/Setting.cs
index 802e92a..2cf1120 100644
--- a/Aktywator/Setting.cs
+++ b/Aktywator/Setting.cs
@@ -42,15 +42,18 @@ namespace Aktywator
field.Checked = a.ToUpper() == "TRUE" ? true : false;
}
- public static string load(string name, Bws bws, StringBuilder errors, string section = null)
+ public static string load(string name, Bws bws, StringBuilder errors, string section = null, string table = "Settings", string sectionField = "`Section`")
{
StringBuilder str = new StringBuilder();
str.Append("SELECT ");
str.Append(name);
- str.Append(" FROM Settings");
+ str.Append(" FROM ");
+ str.Append(table);
if (section != null)
{
- str.Append(" WHERE `Section` = ");
+ str.Append(" WHERE ");
+ str.Append(sectionField);
+ str.Append(" = ");
str.Append(section);
}
try