Skip to content

Commit 7ee917c

Browse files
committed
Merge branch 'hotfix/v1.2.1'
2 parents a05513e + 7f2aab6 commit 7ee917c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

CPanel.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,19 +27,19 @@ public function __construct($cpanel_domain=null, $cpanel_api_token=null, $cpanel
2727

2828
$this->config = Config::get('cpanel');
2929

30-
if(isset($this->config) && isset($this->config['domain']))
30+
if(isset($cpanel_domain))
3131
{
32-
$this->protocol = $this->config['protocol'];
33-
$this->domain = $this->config['domain'];
34-
$this->port = $this->config['port'];
35-
$this->username = $this->config['username'];
36-
$this->token = $this->config['api_token'];
37-
} else{
3832
$this->protocol = $protocol;
3933
$this->port = $port;
4034
$this->domain = $cpanel_domain;
4135
$this->username = $cpanel_username;
4236
$this->token = $cpanel_api_token;
37+
} else{
38+
$this->protocol = $this->config['protocol'];
39+
$this->domain = $this->config['domain'];
40+
$this->port = $this->config['port'];
41+
$this->username = $this->config['username'];
42+
$this->token = $this->config['api_token'];
4343
}
4444

4545

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"keywords": ["laravel", "cpanel", "cpanel api", "cpanel uapi"],
55
"homepage": "https://www.webreinvent.com",
66
"license": "MIT",
7-
"version": "1.2.0",
7+
"version": "1.2.1",
88
"authors": [
99
{
1010
"name": "WebReinvent",

0 commit comments

Comments
 (0)