Fixed bug in automatic fallback to default theme.

This commit is contained in:
Dario Solera 2011-01-06 14:17:33 +00:00
parent c639774f73
commit 753c1410d1
2 changed files with 5 additions and 5 deletions

View file

@ -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")]

View file

@ -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>