From f2a324e7f1502f1517fab5a18e1f555bdbc62cee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Thu, 24 Mar 2022 18:39:36 +0100 Subject: [PATCH 1/2] reload data --- core/class/jsondb/JsonDb.class.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/class/jsondb/JsonDb.class.php b/core/class/jsondb/JsonDb.class.php index 978a813a..808b766a 100644 --- a/core/class/jsondb/JsonDb.class.php +++ b/core/class/jsondb/JsonDb.class.php @@ -31,6 +31,16 @@ class JsonDb extends \Prowebcraft\Dot parent::__construct(); } + /** + * Reload data from file + * @return $this + */ + public function reload() + { + $this->loadData(true); + return $this; + } + /** * Set value or array of values to path * From 255349e93c1b4eb3817bda3e4f308937a113cb91 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Fri, 25 Mar 2022 09:19:45 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20pages=20TinyMCE?= =?UTF-8?q?,=20fonction=20mal=20plac=C3=A9e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/page/page.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/module/page/page.php b/core/module/page/page.php index 53b2e9be..47c5c406 100644 --- a/core/module/page/page.php +++ b/core/module/page/page.php @@ -496,6 +496,10 @@ class page extends common { // Met à jour le site map $this->createSitemap('all'); + + // Mise à jour de la liste des pages pour TinyMCE + $this->pages2Json(); + // Redirection vers la configuration if( $this->getInput('pageEditModuleRedirect', helper::FILTER_BOOLEAN) @@ -529,8 +533,6 @@ class page extends common { self::$pagesBarId[$parentPageId] = $this->getData(['page', $parentPageId, 'title']); } } - // Mise à jour de la liste des pages pour TinyMCE - $this->pages2Json(); // Valeurs en sortie $this->addOutput([ 'title' => $this->getData(['page', $this->getUrl(2), 'title']),