diff --git a/index.php b/index.php index d5ef228..404d558 100644 --- a/index.php +++ b/index.php @@ -16,7 +16,12 @@ require_once __DIR__ . "/lib/parsedown/parsedown.php"; $parsedown = new Parsedown(); -showNews(__DIR__ . "/" . $config["general"]["newsDir"]); +$path = __DIR__ . "/" . $config["general"]["newsDir"]; + +if(file_exists($path)) + showNews($path); +else + echo '

Wystąpił błąd: folder z newsami nie został odnaleziony.

Sprawdź, czy lokalizacja ustawiona w pliku config/config.php jest poprawna.

'; // ******* // METHODS