hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit a7af63037c1c8d0df63a6b9b9ea6a4955c31f03e
parent b6673e5309685ae162fdef2dc39c3ce4385c6005
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Sat, 17 Sep 2016 16:53:58 +0200

Make suure SectionPagesMenu setting is always loaded per language

Diffstat:
Mhugolib/page.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hugolib/page.go b/hugolib/page.go
@@ -880,7 +880,7 @@ func (p *Page) getParam(key string, stringToLower bool) interface{} {
 
 func (p *Page) HasMenuCurrent(menu string, me *MenuEntry) bool {
 	menus := p.Menus()
-	sectionPagesMenu := viper.GetString("SectionPagesMenu")
+	sectionPagesMenu := helpers.Config().GetString("SectionPagesMenu")
 
 	// page is labeled as "shadow-member" of the menu with the same identifier as the section
 	if sectionPagesMenu != "" && p.Section() != "" && sectionPagesMenu == menu && p.Section() == me.Identifier {