Skip to content

Commit

Permalink
make _doRequest public
Browse files Browse the repository at this point in the history
  • Loading branch information
tacman authored Dec 10, 2023
1 parent dce7d90 commit b0c0ee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LibreTranslate.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ public function getError() {

//====== send request to libretranslate server
// TODO: connection issue or libretranslate error message....
private function _doRequest($endpoint, $data = [], $type = 'POST') {
public function _doRequest($endpoint, $data = [], $type = 'POST') {
$this->lastError = '';
$finalEndpoint = $this->apiBase . ( !is_null($this->apiPort) ? ':' . $this->apiPort : '' ) . $endpoint;
$ch = \curl_init($finalEndpoint);
Expand Down

0 comments on commit b0c0ee2

Please sign in to comment.