From 6dacc07e629860b4472ffdfbf9ed462c75b56a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Gaillard?= Date: Fri, 4 Oct 2013 13:19:34 +0200 Subject: [PATCH] // sometimes, translations files could not exist --- admin-dev/init.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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://';