GX-Bug #50183 » JavaScriptLanguageFix.patch
| src/system/extender/ApplicationBottomExtenderComponent.inc.php (revision ) | ||
|---|---|---|
| 119 | 119 |
$renewInitJs = true; |
| 120 | 120 |
} |
| 121 | 121 |
|
| 122 |
$initJsFilename = DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/assets/javascript/init.' . $_SESSION['language_code'] . $suffix
|
|
| 122 |
$initJsFilename = DIR_FS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/assets/javascript/init-' . $_SESSION['language_code'] . $suffix
|
|
| 123 | 123 |
. '.js'; |
| 124 | 124 |
if($renewInitJs || !file_exists($initJsFilename)) |
| 125 | 125 |
{
|
| ... | ... | |
| 204 | 204 |
else |
| 205 | 205 |
{
|
| 206 | 206 |
$this->v_output_buffer['GM_JAVASCRIPT_CODE'] = '<script type="text/javascript" src="templates/' |
| 207 |
. CURRENT_TEMPLATE . '/assets/javascript/init.'
|
|
| 207 |
. CURRENT_TEMPLATE . '/assets/javascript/init-'
|
|
| 208 | 208 |
. $_SESSION['language_code'] . $suffix . '.js' |
| 209 | 209 |
. $bustParameter . '"></script>' . "\n\t\t"; |
| 210 | 210 |
} |