diff options
Diffstat (limited to 'src/web/_controller/error.php')
| -rw-r--r-- | src/web/_controller/error.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web/_controller/error.php b/src/web/_controller/error.php index 9efbb7e..ed89a89 100644 --- a/src/web/_controller/error.php +++ b/src/web/_controller/error.php @@ -6,6 +6,7 @@ class Error_controller extends Controller { function __construct() { $this->error_model = $this->load_model('error'); + $this->load_lang('common', 'error'); } public function code(int $code): void @@ -18,7 +19,7 @@ class Error_controller extends Controller { parent::index(); $this->load_lang('error'); - $data = $this->error_model->get_data($code); + $data = $this->error_model->get_error_data($code); $this->view('header', $data); $this->view('error/main', $data); $this->view('footer', $data); |