diff --git a/module/gitlab/model.php b/module/gitlab/model.php index e80bbf41e2..8b49ceda0c 100644 --- a/module/gitlab/model.php +++ b/module/gitlab/model.php @@ -277,8 +277,8 @@ class gitlabModel extends model public function getRefOptions($gitlabID, $projectID) { $refList = array(); - $branches = $this->loadModel('gitlab')->apiGetBranches($gitlabID, $projectID); - $tags = $this->loadModel('gitlab')->apiGetTags($gitlabID, $projectID); + $branches = $this->apiGetBranches($gitlabID, $projectID); + $tags = $this->apiGetTags($gitlabID, $projectID); foreach($branches as $branch) $refList[] = "Branch::" . $branch->name; foreach($tags as $tag) $refList[] = "Tag::" . $tag->name; return $refList;