Fixing homepage definition during setup

--HG--
branch : autoroute
This commit is contained in:
Sebastien Ros
2012-01-24 13:31:53 -08:00
parent 5f9b679ce3
commit fad0aff8b2
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
668ae298714aa3b95f13d23676d286f201e0df04 src/Orchard.Web/Modules/Orchard.Alias
975b67b13939d2f54fa4717b66ca3c1742600cc3 src/Orchard.Web/Modules/Orchard.Autoroute
6508a97ce4116c19413811e2b77a3e66bca367ec src/Orchard.Web/Modules/Orchard.Autoroute
67bf9897ee9dd9483369aece729ad7c6f042941c src/Orchard.Web/Modules/Orchard.Forms
6033664adc404a22f311029b69fbf1e34dc4ff2a src/Orchard.Web/Modules/Orchard.Projections
a1ef39ba4e2d0cd78b3c91d6150e841793acb34b src/Orchard.Web/Modules/Orchard.Routable

View File

@@ -61,7 +61,7 @@ namespace Orchard.Pages.Commands {
dynamic dpage = page;
if (dpage.AutoroutePart != null) {
dpage.AutoroutePart.UseCustomPattern = true;
dpage.AutoroutePart.CustomPattern = Homepage?"":Slug;
dpage.AutoroutePart.CustomPattern = Homepage ? String.Empty : Slug;
}
}