Message d'erreur si le contenu de la page est absent.

This commit is contained in:
fredtempez 2021-10-01 10:10:24 +02:00
parent ebca94dc3f
commit 07f8751501

View File

@ -473,7 +473,11 @@ class common {
*/
public function getPage($page, $lang) {
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é.';
}
}