Skip to content

Commit

Permalink
Update unreviewed-pages.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Saisengen committed Mar 9, 2024
1 parent 6a8c2b8 commit ff1d138
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion web-services/unreviewed-pages/unreviewed-pages.cs
Expand Up @@ -21,7 +21,11 @@ class Program
static Dictionary<string, pageinfo> pages = new Dictionary<string, pageinfo>();
static void sendresponse(string wiki, string cat, string template, int depth, string result)
{
string resulttext = new StreamReader(Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location), "unreviewed-pages.html")).ReadToEnd();
string strExeFilePath = System.Reflection.Assembly.GetExecutingAssembly().Location;
string? strWorkPath = Path.GetDirectoryName(strExeFilePath);
string strHtmlPath = Path.Combine(strWorkPath!, "unreviewed-pages.html");
var sr = new StreamReader(strHtmlPath);
string resulttext = sr.ReadToEnd();
string title = "";
if (cat != "" && template != "")
title = " (" + cat + ", " + template + ")";
Expand Down

0 comments on commit ff1d138

Please sign in to comment.