forked from ZwiiCMS-Team/ZwiiCampus
1.5.04 Propagation du renommade de la homePage dans course
This commit is contained in:
parent
d3675f62f4
commit
572f0206a8
@ -374,6 +374,10 @@ class page extends common
|
||||
$this->setData(['enrolment', self::$siteContent, $userId, 'lastPageView', $pageId]);
|
||||
}
|
||||
}
|
||||
// Met à jour la homePage si nécessaire
|
||||
if ($this->getUrl(2) === $this->getData(['course', self::$siteContent, 'homePageId'])) {
|
||||
$this->setData(['course', self::$siteContent, 'homePageId', $pageId]);
|
||||
}
|
||||
|
||||
// Si la page correspond à la page d'accueil, change l'id dans la configuration du site
|
||||
if ($this->getData(['config', 'homePageId']) === $this->getUrl(2)) {
|
||||
|
Loading…
Reference in New Issue
Block a user