diff --git a/web-services/unreviewed-pages/unreviewed-pages.cs b/web-services/unreviewed-pages/unreviewed-pages.cs index 22b9f73..cea9159 100644 --- a/web-services/unreviewed-pages/unreviewed-pages.cs +++ b/web-services/unreviewed-pages/unreviewed-pages.cs @@ -21,8 +21,7 @@ class Program static Dictionary pages = new Dictionary(); static void sendresponse(string wiki, string cat, string template, int depth, string result) { - var sr = new StreamReader("unreviewed-pages.html"); - string resulttext = sr.ReadToEnd(); + string resulttext = new StreamReader(Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "unreviewed-pages.html")).ReadToEnd(); string title = ""; if (cat != "" && template != "") title = " (" + cat + ", " + template + ")";