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 ) . ';' ; }