Skip to content

Commit

Permalink
Merge pull request jefs42#5 from arkonisus/patch-2
Browse files Browse the repository at this point in the history
Correct wrong method name
  • Loading branch information
jefs42 committed Mar 26, 2023
2 parents a664ca2 + 1a6f4ec commit 25c5b29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LibreTranslate.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class LibreTranslate
public function __construct($host = null, $port = null, $source = null, $target = null) {
// set API base, remove trailing slash
if (!is_null($host)) {
$this->apiBase = rtrim( $host, '/\\' );;
$this->apiBase = rtrim( $host, '/\\' );
}

// set API port
Expand Down Expand Up @@ -96,7 +96,7 @@ public function setTarget($lang) {
/* set both... */
public function setLanguages($source, $target) {
$this->setSource($source);
$this->setLanguage($target);
$this->setTarget($target);
}

/*
Expand Down

0 comments on commit 25c5b29

Please sign in to comment.