Skip to content
This repository has been archived by the owner on May 28, 2021. It is now read-only.

Commit

Permalink
Fixing constructor to add language support
Browse files Browse the repository at this point in the history
  • Loading branch information
TZK- committed Nov 24, 2016
1 parent 535764b commit aaa7819
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Taiga.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class Taiga extends RestClient {
*
* @throws Exception
*/
public function __construct($baseUrl, $token) {
parent::__construct($baseUrl, $token);
public function __construct($baseUrl, $token, $language = "en") {
parent::__construct($baseUrl, $token, $language);
$this->curl->setHeader('Authorization', 'Bearer ' . $token);

foreach (glob(__DIR__ . '/Services/*.php') as $file) {
Expand Down

0 comments on commit aaa7819

Please sign in to comment.