summaryrefslogtreecommitdiffstats
path: root/application/controllers/file.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/controllers/file.php')
-rw-r--r--application/controllers/file.php6
1 files changed, 6 insertions, 0 deletions
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');