Skip to content

Commit

Permalink
Merge pull request #6202 from kenjis/fix-display404errors
Browse files Browse the repository at this point in the history
fix: use lang('HTTP.pageNotFound') on production 404 page
  • Loading branch information
samsonasik authored Jun 29, 2022
2 parents 79167fd + f12c237 commit b306fbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/CodeIgniter.php
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ protected function display404errors(PageNotFoundException $e)
}

throw PageNotFoundException::forPageNotFound(
(ENVIRONMENT !== 'production' || ! $this->isWeb()) ? $e->getMessage() : ''
(ENVIRONMENT !== 'production' || ! $this->isWeb()) ? $e->getMessage() : null
);
}

Expand Down

0 comments on commit b306fbc

Please sign in to comment.