Server naming fixes and cleanup

Server is now completely cleaned up and without warnings
This commit is contained in:
Pavel Vesely
2020-03-15 09:38:37 +01:00
parent ab3f0853a7
commit 5b3feaf26f
92 changed files with 1223 additions and 1273 deletions

View File

@ -14,10 +14,10 @@ namespace Oqtane.Modules.HtmlText.Manager
_htmlTexts = htmltexts;
}
public string ExportModule(Module Module)
public string ExportModule(Module module)
{
string content = "";
HtmlTextInfo htmltext = _htmlTexts.GetHtmlText(Module.ModuleId);
HtmlTextInfo htmltext = _htmlTexts.GetHtmlText(module.ModuleId);
if (htmltext != null)
{
content = WebUtility.HtmlEncode(htmltext.Content);
@ -25,20 +25,20 @@ namespace Oqtane.Modules.HtmlText.Manager
return content;
}
public void ImportModule(Module Module, string Content, string Version)
public void ImportModule(Module module, string content, string version)
{
Content = WebUtility.HtmlDecode(Content);
HtmlTextInfo htmltext = _htmlTexts.GetHtmlText(Module.ModuleId);
content = WebUtility.HtmlDecode(content);
HtmlTextInfo htmltext = _htmlTexts.GetHtmlText(module.ModuleId);
if (htmltext != null)
{
htmltext.Content = Content;
htmltext.Content = content;
_htmlTexts.UpdateHtmlText(htmltext);
}
else
{
htmltext = new HtmlTextInfo();
htmltext.ModuleId = Module.ModuleId;
htmltext.Content = Content;
htmltext.ModuleId = module.ModuleId;
htmltext.Content = content;
_htmlTexts.AddHtmlText(htmltext);
}
}