private void LoadTemplateRedirects()
{
string text;
TemplateRedirectsLoaded = true;
try
{
text = TheSession.Editor.SynchronousEditor.Clone().Open("Project:AutoWikiBrowser/Template redirects", true);
}
catch
{
text = "";
}
// always make this call even if no text found (if changed project from one to another must make sure redirects are cleared)
WikiRegexes.TemplateRedirects = Parsers.LoadTemplateRedirects(text);
}