From d4ba087158614edf38ad32edcf32058c2be907f2 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Fri, 28 Dec 2012 09:19:54 +0100 Subject: [PATCH] //added check in translation pack import --- controllers/admin/AdminTranslationsController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/admin/AdminTranslationsController.php b/controllers/admin/AdminTranslationsController.php index aa91f2172..cf7874fdb 100644 --- a/controllers/admin/AdminTranslationsController.php +++ b/controllers/admin/AdminTranslationsController.php @@ -647,6 +647,8 @@ class AdminTranslationsControllerCore extends AdminController { foreach ($files_list as $file2check) { + if (pathinfo($file2check['filename'], PATHINFO_BASENAME) == 'index.php') + continue; if (preg_match('@^[0-9a-z-_/\\\\]+\.php$@i', $file2check['filename'])) { if (!AdminTranslationsController::checkTranslationFile(file_get_contents($sandbox.$file2check['filename'])))