From ced97ca14507127c6a455bd1dd637f837f22cd1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Tempez?= Date: Tue, 28 Jan 2025 18:44:41 +0100 Subject: [PATCH] Bug page Editor --- core/module/page/page.php | 2 +- core/module/page/view/edit/edit.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/module/page/page.php b/core/module/page/page.php index c917729a..788187ee 100644 --- a/core/module/page/page.php +++ b/core/module/page/page.php @@ -576,7 +576,7 @@ class page extends common if (!is_dir(self::DATA_DIR . self::$siteContent . '/content')) { mkdir(self::DATA_DIR . self::$siteContent . '/content', 0755); } - $content = empty($this->getInput('pageEditContent', null)) ? '

' : str_replace('

', '

 

', $this->getInput('pageEditContent', null)); + $content = empty($this->getInput('pageEditWysiwyg', null)) ? '

' : str_replace('

', '

 

', $this->getInput('pageEditWysiwyg', null)); $this->setPage($pageId, $content, self::$siteContent); // Met à jour le sitemap diff --git a/core/module/page/view/edit/edit.php b/core/module/page/view/edit/edit.php index 2933bfc6..aa475893 100644 --- a/core/module/page/view/edit/edit.php +++ b/core/module/page/view/edit/edit.php @@ -119,7 +119,7 @@ echo '>';
- 'editorWysiwyg', 'value' => $this->getPage($this->getUrl(2), self::$siteContent) ]); ?>