// sometimes, translations files could not exist
This commit is contained in:
1 parent
f28131fe9b
commit
6dacc07e62
1 file changed
+6
-3
+6
-3
@@ -49,9 +49,12 @@ try
|
|||||||
AdminTab::$currentIndex = $currentIndex;
|
AdminTab::$currentIndex = $currentIndex;
|
||||||
|
|
||||||
$iso = $context->language->iso_code;
|
$iso = $context->language->iso_code;
|
||||||
include(_PS_TRANSLATIONS_DIR_.$iso.'/errors.php');
|
if (file_exists(_PS_TRANSLATIONS_DIR_.$iso.'/errors.php'))
|
||||||
include(_PS_TRANSLATIONS_DIR_.$iso.'/fields.php');
|
include(_PS_TRANSLATIONS_DIR_.$iso.'/errors.php');
|
||||||
include(_PS_TRANSLATIONS_DIR_.$iso.'/admin.php');
|
if (file_exists(_PS_TRANSLATIONS_DIR_.$iso.'/fields.php'))
|
||||||
|
include(_PS_TRANSLATIONS_DIR_.$iso.'/fields.php');
|
||||||
|
if (file_exists(_PS_TRANSLATIONS_DIR_.$iso.'/admin.php'))
|
||||||
|
include(_PS_TRANSLATIONS_DIR_.$iso.'/admin.php');
|
||||||
|
|
||||||
/* Server Params */
|
/* Server Params */
|
||||||
$protocol_link = (Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://';
|
$protocol_link = (Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://';
|
||||||
|
|||||||
Reference in new issue
Block a user