Added warning when transcluding an inexistent page.

This commit is contained in:
Dario Solera 2009-10-12 10:50:27 +00:00
parent fef1495165
commit 1d819c137f
2 changed files with 3 additions and 2 deletions

View file

@ -401,6 +401,7 @@ namespace ScrewTurn.Wiki {
dummy.Append("</div>");
sb.Insert(match.Index, dummy.ToString());
}
else sb.Insert(match.Index, @"<b style=""color: #FF0000;"">FORMATTER ERROR (Transcluded inexistent page or this same page)</b>");
}
ComputeNoWiki(sb.ToString(), ref noWikiBegin, ref noWikiEnd);
match = TransclusionRegex.Match(sb.ToString(), end);