From 44ab41289efe65a80513cc2eade7f95ddd34e3e5 Mon Sep 17 00:00:00 2001 From: Fred T Date: Thu, 24 Jun 2021 22:16:36 +0200 Subject: [PATCH] page content load in edit --- 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 3ab1fc66..ed5a859b 100644 --- a/core/module/page/page.php +++ b/core/module/page/page.php @@ -57,7 +57,7 @@ class page extends common { 'parents' => 'Le menu', 'children' => 'Le sous-menu de la page parente' ]; - public static $content = ''; + /** * Duplication diff --git a/core/module/page/view/edit/edit.php b/core/module/page/view/edit/edit.php index 82962df1..923ae399 100644 --- a/core/module/page/view/edit/edit.php +++ b/core/module/page/view/edit/edit.php @@ -96,7 +96,7 @@ echo template::formOpen('pageEditForm');
'editorWysiwyg', - 'value' => $module::$content + 'value' => file_get_contents(self::DATA_DIR . self::$i18n . '/content/' . $this->getData(['page', $this->getUrl(2), 'content'])) ]); ?>