Permalink
Browse files

//added check in translation pack import

  • Loading branch information...
vAugagneur committed Dec 28, 2012
1 parent 434c0c4 commit d4ba087158614edf38ad32edcf32058c2be907f2
Showing with 2 additions and 0 deletions.
  1. +2 −0 controllers/admin/AdminTranslationsController.php
@@ -647,6 +647,8 @@ public function submitImportLang()
{
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'])))

0 comments on commit d4ba087

Please sign in to comment.