From c779f7cfe33b54702f2a993dfed9d3f14d711031 Mon Sep 17 00:00:00 2001 From: Hector Cortez Date: Mon, 19 Nov 2012 11:16:43 -0400 Subject: [PATCH] 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 - Adjustment in the condition of the calendar when the language doesn't exist. --- gulliver/system/class.g.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gulliver/system/class.g.php b/gulliver/system/class.g.php index 2bf910864..acaadbfd0 100644 --- a/gulliver/system/class.g.php +++ b/gulliver/system/class.g.php @@ -1222,12 +1222,10 @@ class G $calendarJs = ''; $calendarJsFile = PATH_GULLIVER_HOME . "js/widgets/js-calendar/lang/" . $locale .".js"; - if (file_exists($calendarJsFile)) { - $calendarJs = file_get_contents($calendarJsFile) . "\n"; - } else { + if (! file_exists($calendarJsFile)) { $calendarJsFile = PATH_GULLIVER_HOME . "js/widgets/js-calendar/lang/en.js"; - $calendarJs = file_get_contents($calendarJsFile) . "\n"; } + $calendarJs = file_get_contents($calendarJsFile) . "\n"; return $calendarJs . 'var TRANSLATIONS = ' . G::json_encode( $translation ) . ';' ; }