page vide

This commit is contained in:
Fred Tempez 2021-06-14 17:05:06 +02:00
parent 235e8b0f86
commit 8564dbd4c1

View File

@ -436,7 +436,7 @@ class page extends common {
if (!is_dir(self::DATA_DIR . self::$i18n . '/content')) {
mkdir(self::DATA_DIR . self::$i18n . '/content');
}
$content = empty($this->getInput('pageEditContent', null)) ? '<p>&nbsp;</p>' : $this->getInput('pageEditContent', null);
$content = empty($this->getInput('pageEditContent', null)) ? '<p></p>' : str_replace('<p></p>', '<p>&nbsp;</p>', $this->getInput('pageEditContent', null));
file_put_contents( self::DATA_DIR . self::$i18n . '/content/' . $pageId . '.html' , $content );
// Barre renommée : changement le nom de la barre dans les pages mères
if ($this->getinput('pageEditBlock') === 'bar') {