We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a85967 + 65b0b61 commit 8269421Copy full SHA for 8269421
BlogEngine/BlogEngine.Core/Web/Controls/BlogBasePage.cs
@@ -279,8 +279,14 @@ string GetSiteMaster()
279
return path;
280
}
281
282
- return string.Format("{0}Custom/Themes/{1}/site.master", Utils.ApplicationRelativeWebRoot,
283
- BlogSettings.Instance.GetThemeWithAdjustments(null));
+ var siteMaster = string.Format("{0}Custom/Themes/{1}/site.master", Utils.ApplicationRelativeWebRoot,
+ BlogSettings.Instance.GetThemeWithAdjustments(null));
284
+
285
+ if (System.IO.File.Exists(Server.MapPath(siteMaster)))
286
+ return siteMaster;
287
+ else
288
+ return string.Format("{0}Custom/Themes/Standard/site.master", Utils.ApplicationRelativeWebRoot);
289
290
291
292
0 commit comments