Fixed bug in automatic fallback to default theme.
This commit is contained in:
parent
c639774f73
commit
753c1410d1
2 changed files with 5 additions and 5 deletions
|
@ -16,5 +16,5 @@ using System.Reflection;
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Revision and Build Numbers
|
// You can specify all the values or you can default the Revision and Build Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
[assembly: AssemblyVersion("3.0.4.573")]
|
[assembly: AssemblyVersion("3.0.4.574")]
|
||||||
[assembly: AssemblyFileVersion("3.0.4.573")]
|
[assembly: AssemblyFileVersion("3.0.4.574")]
|
|
@ -850,9 +850,9 @@ namespace ScrewTurn.Wiki {
|
||||||
/// <param name="nspace">The namespace (<c>null</c> for the root).</param>
|
/// <param name="nspace">The namespace (<c>null</c> for the root).</param>
|
||||||
/// <returns>The path of the theme.</returns>
|
/// <returns>The path of the theme.</returns>
|
||||||
public static string GetThemePath(string nspace) {
|
public static string GetThemePath(string nspace) {
|
||||||
string path = ThemesDirectoryName + "/" + GetTheme(nspace) + "/";
|
string theme = GetTheme(nspace);
|
||||||
if(!Directory.Exists(path)) return ThemesDirectoryName + "/Default/";
|
if(!Directory.Exists(ThemesDirectory + theme)) return ThemesDirectoryName + "/Default/";
|
||||||
else return path;
|
else return ThemesDirectoryName + "/" + theme + "/";
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue