summaryrefslogtreecommitdiffstats
path: root/application/controllers/user.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-07-23 21:56:01 +0200
committerFlorian Pritz <bluewind@xinu.at>2014-07-23 21:58:19 +0200
commitcc72236f71c60396b69631656f8e0ad00a6301c8 (patch)
treea981833a17cba56e85682048a84e544e877af773 /application/controllers/user.php
parentce58ad70b8f3800adeaaadd46d8ed499bc21eda6 (diff)
Move migration code to CLI callable function
This is necessary to prevent migrations from running multiple times in parallel. A git hook can be used to run this after checkout so impact should be fairly low. Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/controllers/user.php')
-rw-r--r--application/controllers/user.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/application/controllers/user.php b/application/controllers/user.php
index b4e2613ac..079f1665c 100644
--- a/application/controllers/user.php
+++ b/application/controllers/user.php
@@ -23,6 +23,11 @@ class User extends MY_Controller {
function index()
{
+ if ($this->input->is_cli_request()) {
+ $this->load->library("../controllers/tools");
+ return $this->tools->index();
+ }
+
$this->data["username"] = $this->muser->get_username();
$this->load->view('header', $this->data);