Add validation feature Gmail to synchronize drive

This commit is contained in:
Marco A. Nina Mena
2015-12-20 11:28:29 -04:00
parent f333f03acb
commit a9fb0962fe
2 changed files with 11 additions and 3 deletions

View File

@@ -967,10 +967,15 @@ function synchronizeDrive ()
return false;
}
setExecutionMessage("Synchronize documents to drive");
G::LoadClass('AppDocumentDrive');
$drive = new AppDocumentDrive();
$drive->synchronizeDrive(true);
if($drive->getStatusDrive()) {
setExecutionMessage("Synchronize documents to drive");
$drive->synchronizeDrive(true);
} else {
setExecutionMessage("It has not enabled Feature Gmail");
}
setExecutionResultMessage("DONE");
} catch (Exception $e) {