Mise à jour de pages TinyMCE, fonction mal placée

This commit is contained in:
fredtempez 2022-03-25 09:19:45 +01:00
parent f2a324e7f1
commit 255349e93c
1 changed files with 4 additions and 2 deletions

View File

@ -496,6 +496,10 @@ class page extends common {
// Met à jour le site map // Met à jour le site map
$this->createSitemap('all'); $this->createSitemap('all');
// Mise à jour de la liste des pages pour TinyMCE
$this->pages2Json();
// Redirection vers la configuration // Redirection vers la configuration
if( if(
$this->getInput('pageEditModuleRedirect', helper::FILTER_BOOLEAN) $this->getInput('pageEditModuleRedirect', helper::FILTER_BOOLEAN)
@ -529,8 +533,6 @@ class page extends common {
self::$pagesBarId[$parentPageId] = $this->getData(['page', $parentPageId, 'title']); self::$pagesBarId[$parentPageId] = $this->getData(['page', $parentPageId, 'title']);
} }
} }
// Mise à jour de la liste des pages pour TinyMCE
$this->pages2Json();
// Valeurs en sortie // Valeurs en sortie
$this->addOutput([ $this->addOutput([
'title' => $this->getData(['page', $this->getUrl(2), 'title']), 'title' => $this->getData(['page', $this->getUrl(2), 'title']),