uploadImage bbcode is replaced with uploadLink when quoting

main
Inga 🏳‍🌈 15 years ago
parent 8e41de4dd3
commit d007a91f88
  1. 6
      Common/BBCodes/QuoteSkipper.cs

@ -16,9 +16,11 @@ namespace FLocal.Common.BBCodes {
} else if(this.Name.ToLower() == "code") {
return "[code]" + this.InnerBBCode + "[/code]";
} else {
string name = this.Name;
if(name.ToLower() == "uploadimage") name = "uploadLink";
var sb = new StringBuilder();
sb.Append("[");
sb.Append(this.Name);
sb.Append(name);
if(this.Default != null && this.Default != "") {
sb.Append("='");
sb.Append(this.Default.Replace("'", "''"));
@ -36,7 +38,7 @@ namespace FLocal.Common.BBCodes {
if(this.RequireClosingTag) {
sb.Append(this.GetInnerHTML(formatter));
sb.Append("[/");
sb.Append(this.Name);
sb.Append(name);
sb.Append("]");
}
return sb.ToString();

Loading…
Cancel
Save