This project is read-only.
1
Vote

Get Themes does not properly detect SP 2010 instance

description

I downloaded and reviewed the source code and found that Sushi does not test for SP 2010 in the GetThemes procedure So I updated with the following changes.
 
private string getSpThemesPath()
    {
        string filePath = "";
        if (SharePointUtil.IsSharePoint2007InstalledLocally)  filePath = Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFiles) + @"\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033\SPTHEMES.XML";
        if (SharePointUtil.IsSharePoint2010InstalledLocally) filePath = Environment.GetFolderPath(Environment.SpecialFolder.CommonProgramFiles) + @"\Microsoft Shared\web server extensions\14\TEMPLATE\LAYOUTS\1033\SPTHEMES.XML";
        if (!System.IO.File.Exists(filePath))
        {
            AddToRtbLocal("Unable to find SPTHEMES.XML at " + filePath, StyleType.bodyRed);
            return null;
        }
 
        AddToRtbLocal("Retrieving Themes from SPTHEMS.XML at ", StyleType.bodyBlack);
        AddToRtbLocal(filePath + "\r\n", StyleType.bodyChocolate);
        return filePath;
    }

comments