* Rename codes to meet devel rule and bug fix on params.

This commit is contained in:
dingguodong
2021-07-23 14:09:17 +08:00
parent 4cc45d1e81
commit bbd3368393
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -167,9 +167,9 @@ class repo extends control
$this->app->loadLang('action');
if($repo->SCM == 'Gitlab')
if(strtolower($repo->SCM) == 'gitlab')
{
$projects = $this->loadModel('gitlab')->apiGetProjects($repo->gitlab, $repo->password);
$projects = $this->loadModel('gitlab')->apiGetProjects($repo->gitlab);
$options = array();
foreach($projects as $project) $options[$project->id] = $project->name_with_namespace;
+1 -1
View File
@@ -11,7 +11,7 @@ $(function()
{
host = $('#gitlabHost').val();
if(host == '') return false;
url = createLink('repo', 'ajaxgetgitlabprojects', "host=" + host);
url = createLink('repo', 'ajaxGetGitlabProjects', "host=" + host);
$.get(url, function(response)
{