Merged in marcoAntonioNina/processmaker/GI-244 (pull request #3463)

GI-244
This commit is contained in:
Dante Loayza
2016-01-08 14:32:29 -04:00

View File

@@ -962,15 +962,14 @@ function fillReportByProcess ()
function synchronizeDrive ()
{
try
{
try {
global $argvx;
if (strpos($argvx, "synchronize-documents-drive") === false) {
return false;
}
$licensedFeatures = &PMLicensedFeatures::getSingleton();
if (!$licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
if ($licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
G::LoadClass('AppDocumentDrive');
$drive = new AppDocumentDrive();
if ($drive->getStatusDrive()) {
@@ -993,15 +992,14 @@ function synchronizeDrive ()
function synchronizeGmailLabels()
{
try
{
try {
global $argvx;
if (strpos($argvx, "synchronize-gmail-labels") === false) {
return false;
}
$licensedFeatures = &PMLicensedFeatures::getSingleton();
if (!$licensedFeatures->verifyfeature('AhKNjBEVXZlWUFpWE8wVTREQ0FObmo0aTdhVzhvalFic1M=')) {
if ($licensedFeatures->verifyfeature('7qhYmF1eDJWcEdwcUZpT0k4S0xTRStvdz09')) {
G::LoadClass("pmGoogleApi");
$pmGoogle = new PMGoogleApi();
if ($pmGoogle->getServiceGmailStatus()) {