Merge pull request #1995 from brayanpereyra/master
Arreglo de sentencia if
This commit is contained in:
@@ -4946,7 +4946,7 @@ class Cases
|
|||||||
G::verifyPath($pathEmail, true); //Create if it does not exist
|
G::verifyPath($pathEmail, true); //Create if it does not exist
|
||||||
$fileTemplate = $pathEmail . G::LoadTranslation('ID_UNASSIGNED_MESSAGE');
|
$fileTemplate = $pathEmail . G::LoadTranslation('ID_UNASSIGNED_MESSAGE');
|
||||||
|
|
||||||
if (!file_exists($fileTemplate)) {
|
if ((!file_exists($fileTemplate)) && file_exists(PATH_TPL . "mails" . PATH_SEP . G::LoadTranslation('ID_UNASSIGNED_MESSAGE'))) {
|
||||||
@copy(PATH_TPL . "mails" . PATH_SEP . G::LoadTranslation('ID_UNASSIGNED_MESSAGE'), $fileTemplate);
|
@copy(PATH_TPL . "mails" . PATH_SEP . G::LoadTranslation('ID_UNASSIGNED_MESSAGE'), $fileTemplate);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3865,7 +3865,7 @@ class Processes
|
|||||||
@copy( PATH_TPL . "mails" . PATH_SEP . "alert_message.html", $dir . "alert_message.html" );
|
@copy( PATH_TPL . "mails" . PATH_SEP . "alert_message.html", $dir . "alert_message.html" );
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! file_exists( $dir . "unassignedMessage.html" )) {
|
if ( (!file_exists( $dir . "unassignedMessage.html")) && file_exists($dir . G::LoadTranslation('ID_UNASSIGNED_MESSAGE'))) {
|
||||||
if (defined('PARTNER_FLAG')) {
|
if (defined('PARTNER_FLAG')) {
|
||||||
@copy( PATH_TPL . "mails" . PATH_SEP . "unassignedMessagePartner.html", $dir . G::LoadTranslation('ID_UNASSIGNED_MESSAGE'));
|
@copy( PATH_TPL . "mails" . PATH_SEP . "unassignedMessagePartner.html", $dir . G::LoadTranslation('ID_UNASSIGNED_MESSAGE'));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -644,6 +644,7 @@ class Language extends BaseLanguage
|
|||||||
$trn = new Translation();
|
$trn = new Translation();
|
||||||
$trn->generateFileTranslationPlugin( $plugin, $idLanguage );
|
$trn->generateFileTranslationPlugin( $plugin, $idLanguage );
|
||||||
$trn->addTranslationEnvironmentPlugins( $plugin, $idLanguage, $POHeaders, $countItemsSuccess );
|
$trn->addTranslationEnvironmentPlugins( $plugin, $idLanguage, $POHeaders, $countItemsSuccess );
|
||||||
|
$languageID = (isset($languageID)) ? $languageID : $idLanguage;
|
||||||
|
|
||||||
//fill the results
|
//fill the results
|
||||||
$results = new stdClass();
|
$results = new stdClass();
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ if (!$partnerFlag) {
|
|||||||
//tools options
|
//tools options
|
||||||
if ($RBAC->userCanAccess('PM_SETUP_ADVANCE') == 1 ) {
|
if ($RBAC->userCanAccess('PM_SETUP_ADVANCE') == 1 ) {
|
||||||
if (!$partnerFlag) {
|
if (!$partnerFlag) {
|
||||||
$G_TMP_MENU->AddIdRawOption('PLUGINS', 'pluginsMain', 'Plugins Manager', 'icon-plugins.png', '', 'plugins');
|
$G_TMP_MENU->AddIdRawOption('PLUGINS', 'pluginsMain', G::LoadTranslation('ID_PLUGINS_MANAGER'), 'icon-plugins.png', '', 'plugins');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user