diff --git a/core/core.php b/core/core.php index ae0ea379..5b45b69a 100755 --- a/core/core.php +++ b/core/core.php @@ -473,7 +473,11 @@ class common { */ public function getPage($page, $lang) { - return file_get_contents(self::DATA_DIR . $lang . '/content/' . $this->getData(['page', $page, 'content'])); + if (file_exists(self::DATA_DIR . $lang . '/content/' . $this->getData(['page', $page, 'content']))) { + return file_get_contents(self::DATA_DIR . $lang . '/content/' . $this->getData(['page', $page, 'content'])); + } else { + return 'Aucun contenu trouvé.'; + } }