* Modify language.

This commit is contained in:
caoyanyi
2022-02-10 09:22:20 +00:00
parent bb93656682
commit 7be47b221e
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -245,7 +245,7 @@ class gitlab extends control
$gitlabURL = trim($this->post->url);
$token = trim($this->post->token);
if(strpos($gitlabURL, 'http') !== 0) return $this->send(array('result' => 'fail', 'message' => array('url' => array($this->lang->gitlab->hostError))));
if(strpos($gitlabURL, 'http') !== 0) return $this->send(array('result' => 'fail', 'message' => array('url' => array(sprintf($this->lang->gitlab->hostError, $this->config->gitlab->minCompatibleVersion)))));
if(!$token) return $this->send(array('result' => 'fail', 'message' => array('token' => array($this->lang->gitlab->tokenError))));
$user = $this->gitlab->apiGetCurrentUser($gitlabURL, $token, true);