Server naming fixes and cleanup
Server is now completely cleaned up and without warnings
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user