diff --git a/module/git/control.php b/module/git/control.php index b94baca7fe..c50af7f63b 100644 --- a/module/git/control.php +++ b/module/git/control.php @@ -118,8 +118,8 @@ class git extends control $parsedLogs[] = $this->convertLog($log); } - $parsedObjects = array('stories' => array(), 'tasks' => array(), 'bugs' => array()); $this->loadModel('repo'); + $parsedObjects = array('stories' => array(), 'tasks' => array(), 'bugs' => array()); foreach($parsedLogs as $log) { $objects = $this->repo->parseComment($log->msg); diff --git a/module/svn/control.php b/module/svn/control.php index b194f3a77f..129bd3246b 100644 --- a/module/svn/control.php +++ b/module/svn/control.php @@ -106,8 +106,8 @@ class svn extends control { $parsedLogs[] = $this->svn->convertLog($entry); } - $parsedObjects = array('stories' => array(), 'tasks' => array(), 'bugs' => array()); $this->loadModel('repo'); + $parsedObjects = array('stories' => array(), 'tasks' => array(), 'bugs' => array()); foreach($parsedLogs as $log) { $objects = $this->repo->parseComment($log->msg);