summaryrefslogtreecommitdiffstats
path: root/application/controllers/file.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2011-12-17 12:06:24 +0100
committerFlorian Pritz <bluewind@xinu.at>2011-12-17 12:07:57 +0100
commite4ee81d800a08a5839dcfeeb3441f2f0b4247a6f (patch)
treee4f3740e00f1cdbe08b6c451a72b3c6cf60f209e /application/controllers/file.php
parentb11b171bc8054d0734176527d80415227502a37d (diff)
use migrations; automatically set up the database
Signed-off-by: Florian Pritz <bluewind@xinu.at>
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');