* Finish task#8000.
This commit is contained in:
@@ -14,8 +14,9 @@ class scm
|
||||
{
|
||||
$className = $repo->SCM;
|
||||
if($className == 'Git') $className = 'GitRepo';
|
||||
$client = strpos($repo->client, ' ') ? str_replace(' ', '" "', $repo->client) : $repo->client;
|
||||
if(!class_exists($className)) require(strtolower($className) . '.class.php');
|
||||
$this->engine = new $className($repo->client, $repo->path, $repo->account, $repo->password, $repo->encoding);
|
||||
$this->engine = new $className($client, $repo->path, $repo->account, $repo->password, $repo->encoding);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -931,7 +931,7 @@ class repoModel extends model
|
||||
{
|
||||
if(empty($_POST)) return false;
|
||||
$scm = $this->post->SCM;
|
||||
$client = $this->post->client;
|
||||
$client = str_replace(' ', '" "', $this->post->client);
|
||||
$account = $this->post->account;
|
||||
$password = $this->post->password;
|
||||
$encoding = strtoupper($this->post->encoding);
|
||||
|
||||
Reference in New Issue
Block a user