Change BasePage.cs
This commit is contained in:
parent
a28b00107c
commit
fd4d4b2e3e
@ -58,7 +58,7 @@ public class BasePage : Page
|
||||
private bool IsContentExists(string contentName, string cultureKey)
|
||||
{
|
||||
string fileName = GetContentFileNameByCulture(contentName, cultureKey);
|
||||
return File.Exists(MapPath(fileName));
|
||||
return File.Exists(MapPath(fileName)) || Directory.EnumerateFiles(MapPath("~/Bin/"), Path.GetFileName(fileName) + ".*.compiled").Any();
|
||||
}
|
||||
|
||||
public string GetContentFileName(string contentName, bool isVirtualPath)
|
||||
|
Loading…
Reference in New Issue
Block a user