mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Update ViewUserControl.cs
This commit is contained in:
@@ -67,24 +67,7 @@ namespace Orchard.Mvc {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void SetMeta(string name = null, string content = null, string httpEquiv = null, string charset = null) {
|
public void SetMeta(string name = null, string content = null, string httpEquiv = null, string charset = null) {
|
||||||
var metaEntry = new MetaEntry();
|
var metaEntry = new MetaEntry(name, content, httpEquiv, charset);
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(name)) {
|
|
||||||
metaEntry.Name = name;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(content)) {
|
|
||||||
metaEntry.Content = content;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(httpEquiv)) {
|
|
||||||
metaEntry.HttpEquiv = httpEquiv;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!String.IsNullOrEmpty(charset)) {
|
|
||||||
metaEntry.Charset = charset;
|
|
||||||
}
|
|
||||||
|
|
||||||
SetMeta(metaEntry);
|
SetMeta(metaEntry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user