correction absence de homePageid
This commit is contained in:
parent
33c8ee210b
commit
223d100f13
|
@ -369,7 +369,12 @@ class common {
|
||||||
$this->url = $url;
|
$this->url = $url;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->url = $this->getData(['locale', 'homePageId']);
|
if( null !== $this->getData(['page', $this->getData(['locale', 'homePageId']) ]) ){
|
||||||
|
$this->url = $this->getData(['locale', 'homePageId']);
|
||||||
|
} else {
|
||||||
|
$pages = array_keys($this->getData(['page']));
|
||||||
|
$this->url = $pages[0];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue