Corrected Google_sync library name.

This commit is contained in:
Alex Tselegidis 2016-07-22 21:51:50 +02:00
parent 2a4e7efbe4
commit aa14b7eef0
2 changed files with 2 additions and 2 deletions

View File

@ -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']);
}

View File

@ -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.