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

@ -16,5 +16,5 @@ using System.Reflection;
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("3.0.0.344")]
[assembly: AssemblyFileVersion("3.0.0.344")]
[assembly: AssemblyVersion("3.0.0.345")]
[assembly: AssemblyFileVersion("3.0.0.345")]

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);