Theme switch fails

Topics: Enhanced Blog Edition
Oct 23, 2008 at 11:15 AM
Hi,

To get a fix of the CaptchaValidator I downloaded the 18292 changeset source. Somehow there is a bug in this code that prevents any theme change. When you look in BlogContext.cs in the BlogTheme property, an 'if' statement seems to check the wrong way around. In line 205 the statement should read:

if (!availableThemes.Contains(_currentTheme))
{
    _currentTheme = null;
    HttpContext.Current.Request.Cookies.Remove("ebeBlogTheme-" + SPContext.Current.Web.Url);
}

Otherwise the theme choice will be wiped anytime a non default theme is selected.

Keep up the good work.

Wim.