Corrected server paths.

This commit is contained in:
2017-10-12 18:50:41 +01:00
parent 0a840b59ce
commit 819fcfc3a2
4 changed files with 4 additions and 4 deletions

View File

@@ -12,7 +12,7 @@
DiscImageChef list of changes:
</p>
<div>
<velyo:MarkdownContent ID="todo" runat="server" Path="docs/Changelog.md" />
<velyo:MarkdownContent ID="todo" runat="server" Path="~/docs/Changelog.md" />
</div>
</body>
</html>

View File

@@ -12,7 +12,7 @@
DiscImageChef list of things to be donated:
</p>
<div>
<velyo:MarkdownContent ID="todo" runat="server" Path="docs/DONATING.md" />
<velyo:MarkdownContent ID="todo" runat="server" Path="~/docs/DONATING.md" />
</div>
</body>
</html>

View File

@@ -12,7 +12,7 @@ namespace DiscImageChef.Server
protected void Page_Load(object sender, EventArgs e)
{
MarkdownContent mkdown = new MarkdownContent();
StreamReader sr = new StreamReader("docs/README.md");
StreamReader sr = new StreamReader(Path.Combine(System.Web.Hosting.HostingEnvironment.MapPath("~"), "docs", "README.md"));
string mdcontent = sr.ReadToEnd();
sr.Close();

View File

@@ -12,7 +12,7 @@
DiscImageChef list of things to do:
</p>
<div>
<velyo:MarkdownContent ID="todo" runat="server" Path="docs/TODO.md" />
<velyo:MarkdownContent ID="todo" runat="server" Path="~/docs/TODO.md" />
</div>
</body>
</html>