From e4ee81d800a08a5839dcfeeb3441f2f0b4247a6f Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sat, 17 Dec 2011 12:06:24 +0100 Subject: use migrations; automatically set up the database Signed-off-by: Florian Pritz --- application/controllers/file.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'application/controllers/file.php') diff --git a/application/controllers/file.php b/application/controllers/file.php index 814464ade..470383504 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -12,6 +12,12 @@ class File extends CI_Controller { function __construct() { parent::__construct(); + + $this->load->library('migration'); + if ( ! $this->migration->current()) { + show_error($this->migration->error_string()); + } + mb_internal_encoding('UTF-8'); $this->load->helper(array('form', 'filebin')); $this->load->model('file_mod'); -- cgit v1.2.3-24-g4f1b