diff --git a/application/controllers/contest.php b/application/controllers/contest.php index 11e5afb86..359ed8f98 100644 --- a/application/controllers/contest.php +++ b/application/controllers/contest.php @@ -84,6 +84,7 @@ class Contest extends CI_Controller { public function create() { $this->load->model('logbook_model'); $this->load->model('user_model'); + $this->load->model('contests'); if(!$this->user_model->authorize(2)) { $this->session->set_flashdata('notice', 'You\'re not allowed to do that!'); redirect('dashboard'); } $data['templates'] = $this->contests->list_templates(); diff --git a/application/views/contest/log.php b/application/views/contest/log.php index 6da41d28a..8d36809b0 100644 --- a/application/views/contest/log.php +++ b/application/views/contest/log.php @@ -65,7 +65,7 @@ function settime () {