We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ec9861d + de34485 commit 35e0a4fCopy full SHA for 35e0a4f
src/PleskX/Api/Client.php
@@ -137,8 +137,9 @@ public function request($request, $mode = self::RESPONSE_SHORT)
137
}
138
139
if ('sdk' == $this->_protocol) {
140
+ $version = ('' == $this->_version) ? null : $this->_version;
141
$requestXml = new SimpleXMLElement((string)$request);
- $xml = \pm_ApiRpc::getService()->call($requestXml->children()[0]->asXml(), $this->_login);
142
+ $xml = \pm_ApiRpc::getService($version)->call($requestXml->children()[0]->asXml(), $this->_login);
143
} else {
144
$xml = $this->_performHttpRequest($request);
145
0 commit comments