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: DiscImageChef list of changes:
</p> </p>
<div> <div>
<velyo:MarkdownContent ID="todo" runat="server" Path="docs/Changelog.md" /> <velyo:MarkdownContent ID="todo" runat="server" Path="~/docs/Changelog.md" />
</div> </div>
</body> </body>
</html> </html>

View File

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

View File

@@ -12,7 +12,7 @@ namespace DiscImageChef.Server
protected void Page_Load(object sender, EventArgs e) protected void Page_Load(object sender, EventArgs e)
{ {
MarkdownContent mkdown = new MarkdownContent(); 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(); string mdcontent = sr.ReadToEnd();
sr.Close(); sr.Close();

View File

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