diff --git a/src/application/controllers/Backend_api.php b/src/application/controllers/Backend_api.php index 6c22c2d2..d41d1fdb 100644 --- a/src/application/controllers/Backend_api.php +++ b/src/application/controllers/Backend_api.php @@ -390,7 +390,7 @@ class Backend_api extends CI_Controller { if ($google_sync == TRUE) { $google_token = json_decode($this->providers_model ->get_setting('google_token', $provider['id'])); - $this->load->library('Google_Sync'); + $this->load->library('Google_sync'); $this->google_sync->refresh_token($google_token->refresh_token); $this->google_sync->delete_appointment($provider, $appointment['id_google_calendar']); } diff --git a/src/application/controllers/Google.php b/src/application/controllers/Google.php index f8eac117..f61665d7 100644 --- a/src/application/controllers/Google.php +++ b/src/application/controllers/Google.php @@ -63,7 +63,7 @@ class Google extends CI_Controller { */ public function oauth_callback() { if (isset($_GET['code'])) { - $this->load->library('Google_Sync'); + $this->load->library('Google_sync'); $token = $this->google_sync->authenticate($_GET['code']); // Store the token into the database for future reference.