Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
A wrong if statement causing infinite loop
The welcome screen view not consistent with the BlogConfig Model
  • Loading branch information
asapostolov committed Feb 6, 2012
1 parent a953b6a commit 234df03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion RaccoonBlog.Web/Controllers/RaccoonController.cs
Expand Up @@ -27,7 +27,7 @@ public BlogConfig BlogConfig
blogConfig = RavenSession.Load<BlogConfig>("Blog/Config");
}

if (blogConfig == null && "welcome".Equals((string)RouteData.Values["controller"], StringComparison.OrdinalIgnoreCase)) // first launch
if (blogConfig == null && !"welcome".Equals((string)RouteData.Values["controller"], StringComparison.OrdinalIgnoreCase)) // first launch
{
HttpContext.Response.Redirect("/welcome", true);
}
Expand Down
1 change: 1 addition & 0 deletions RaccoonBlog.Web/Views/Welcome/Index.cshtml
Expand Up @@ -92,6 +92,7 @@
@Html.TextBoxFor(model => model.MetaDescription)
@Html.ValidationMessageFor(model => model.MetaDescription)
</div>
@Html.HiddenFor(model => model.RssFuturePostsKey)

<p>
<input type="submit" value="Setup my blog" />
Expand Down

0 comments on commit 234df03

Please sign in to comment.