Update 10-dynamic-pages.md

This commit is contained in:
Patrick Louys 2016-11-01 17:22:53 +01:00 committed by lubiana
parent b3ab24d13f
commit d45d852d6d
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk

View file

@ -166,7 +166,7 @@ Then in the `FilePageReader` file add this code at the end of your `readBySlug`
```php
$path = "$this->pageFolder/$slug.md";
if(!file_exists($path)) {
if (!file_exists($path)) {
throw new InvalidPageException($slug);
}