Skip to content

Commit f12c237

Browse files
committed
fix: use lang('HTTP.pageNotFound') on production 404 page
1 parent 24f67ea commit f12c237

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)