diff --git a/lib/Pico.php b/lib/Pico.php index f566a06..c498faf 100644 --- a/lib/Pico.php +++ b/lib/Pico.php @@ -298,7 +298,8 @@ class Pico // load raw file content $this->triggerEvent('onContentLoading', array(&$this->requestFile)); - if (file_exists($this->requestFile)) { + $notFoundFile = '404' . $this->getConfig('content_ext'); + if (file_exists($this->requestFile) && (basename($this->requestFile) !== $notFoundFile)) { $this->rawContent = $this->loadFileContent($this->requestFile); } else { $this->triggerEvent('on404ContentLoading', array(&$this->requestFile));