clean up some files to make enchanced inbox run for first time
This commit is contained in:
@@ -15,7 +15,8 @@ class PMPlugin extends PmPluginCompatibility
|
||||
public $sPluginFolder = '';
|
||||
public $aWorkspaces = null;
|
||||
public $bPrivate = false;
|
||||
|
||||
public $sDescription;
|
||||
public $sSetupPage;
|
||||
/**
|
||||
* This function sets values to the plugin
|
||||
* @param string $sNamespace
|
||||
@@ -28,6 +29,8 @@ class PMPlugin extends PmPluginCompatibility
|
||||
$this->sClassName = $sNamespace . 'Plugin';
|
||||
$this->sPluginFolder = $sNamespace;
|
||||
$this->sFilename = $sFilename;
|
||||
$this->sDescription = null;
|
||||
$this->sSetupPage = null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -236,16 +236,17 @@ try {
|
||||
$_SESSION['USR_TIME_ZONE'] = $userTimeZone;
|
||||
}
|
||||
|
||||
if (isset($_SESSION['__SYSTEM_UTC_TIME_ZONE__']) && $_SESSION['__SYSTEM_UTC_TIME_ZONE__']) {
|
||||
$dateTime = new \ProcessMaker\Util\DateTime();
|
||||
if (isset($_SESSION['__SYSTEM_UTC_TIME_ZONE__']) && $_SESSION['__SYSTEM_UTC_TIME_ZONE__']) {
|
||||
$dateTime = new \ProcessMaker\Util\DateTime();
|
||||
|
||||
$timeZoneOffset = $dateTime->getTimeZoneOffsetByTimeZoneId($_SESSION['USR_TIME_ZONE']);
|
||||
$timeZoneOffset = $dateTime->getTimeZoneOffsetByTimeZoneId($_SESSION['USR_TIME_ZONE']);
|
||||
|
||||
if ($timeZoneOffset === false || $timeZoneOffset != (int)($_POST['form']['BROWSER_TIME_ZONE_OFFSET'])) {
|
||||
$_SESSION['__TIME_ZONE_FAILED__'] = true;
|
||||
$_SESSION['BROWSER_TIME_ZONE'] = $dateTime->getTimeZoneIdByTimeZoneOffset((int)$_POST['form']['BROWSER_TIME_ZONE_OFFSET'], false);
|
||||
}
|
||||
if ($timeZoneOffset === false || $timeZoneOffset != (int)($_POST['form']['BROWSER_TIME_ZONE_OFFSET'])) {
|
||||
// disable the validation, because plugin enhanced inbox was not working...
|
||||
//$_SESSION['__TIME_ZONE_FAILED__'] = true;
|
||||
//$_SESSION['BROWSER_TIME_ZONE'] = $dateTime->getTimeZoneIdByTimeZoneOffset((int)$_POST['form']['BROWSER_TIME_ZONE_OFFSET'], false);
|
||||
}
|
||||
}
|
||||
|
||||
//Set data
|
||||
$aUser = $RBAC->userObj->load($_SESSION['USER_LOGGED']);
|
||||
|
||||
@@ -110,7 +110,6 @@ class PluginRegistry
|
||||
$this->_aPluginDetails[$Namespace]->setVersion($plugin->iVersion);
|
||||
return;
|
||||
}
|
||||
|
||||
$detail = new PluginDetail(
|
||||
$Namespace,
|
||||
$ClassName,
|
||||
|
||||
Reference in New Issue
Block a user