diff --git a/admin-dev/init.php b/admin-dev/init.php index 441433a2a..74e960149 100644 --- a/admin-dev/init.php +++ b/admin-dev/init.php @@ -49,9 +49,12 @@ try AdminTab::$currentIndex = $currentIndex; $iso = $context->language->iso_code; - include(_PS_TRANSLATIONS_DIR_.$iso.'/errors.php'); - include(_PS_TRANSLATIONS_DIR_.$iso.'/fields.php'); - include(_PS_TRANSLATIONS_DIR_.$iso.'/admin.php'); + if (file_exists(_PS_TRANSLATIONS_DIR_.$iso.'/errors.php')) + include(_PS_TRANSLATIONS_DIR_.$iso.'/errors.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 */ $protocol_link = (Configuration::get('PS_SSL_ENABLED')) ? 'https://' : 'http://';