BUG 7301 With Aymara translation can not use Date Picker dialog...SOLVED

- With Aymara translation can not use Date Picker dialog and can't open Output Documents for editing
- Added of the condition in calendar when the language doesn't exist.
This commit is contained in:
Hector Cortez
2012-11-16 17:16:01 -04:00
parent a5bb5b9c23
commit faea923491

View File

@@ -1224,6 +1224,9 @@ class G
$calendarJsFile = PATH_GULLIVER_HOME . "js/widgets/js-calendar/lang/" . $locale .".js";
if (file_exists($calendarJsFile)) {
$calendarJs = file_get_contents($calendarJsFile) . "\n";
} else {
$calendarJsFile = PATH_GULLIVER_HOME . "js/widgets/js-calendar/lang/en.js";
$calendarJs = file_get_contents($calendarJsFile) . "\n";
}
return $calendarJs . 'var TRANSLATIONS = ' . G::json_encode( $translation ) . ';' ;
@@ -3468,10 +3471,10 @@ class G
G::LoadClass("pmFunctions");
G::LoadThirdParty('phpmailer', 'class.phpmailer');
$setup = getEmailConfiguration();
if ($setup['MESS_RAUTH'] == false || (is_string($setup['MESS_RAUTH']) && $setup['MESS_RAUTH'] == 'false')) {
$setup['MESS_RAUTH'] = 0;
} else {
$setup['MESS_RAUTH'] = 1;
if ($setup['MESS_RAUTH'] == false || (is_string($setup['MESS_RAUTH']) && $setup['MESS_RAUTH'] == 'false')) {
$setup['MESS_RAUTH'] = 0;
} else {
$setup['MESS_RAUTH'] = 1;
}
if (count($setup) == 0 || !isset($setup['MESS_ENGINE']) || !isset($setup['MESS_SERVER'])