Skip to content

Commit b306fbc

Browse files
authored
Merge pull request #6202 from kenjis/fix-display404errors
fix: use lang('HTTP.pageNotFound') on production 404 page
2 parents 79167fd + f12c237 commit b306fbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/CodeIgniter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@ protected function display404errors(PageNotFoundException $e)
947947
}
948948

949949
throw PageNotFoundException::forPageNotFound(
950-
(ENVIRONMENT !== 'production' || ! $this->isWeb()) ? $e->getMessage() : ''
950+
(ENVIRONMENT !== 'production' || ! $this->isWeb()) ? $e->getMessage() : null
951951
);
952952
}
953953

0 commit comments

Comments
 (0)