From 430cb2d510d3c316848bbebc2995fd507429d0c8 Mon Sep 17 00:00:00 2001 From: Eloy Lafuente Date: Sun, 30 May 2010 10:15:55 +0000 Subject: [PATCH] MDL-22585 languages import - fixed regression caused by the inclusion of 'parentlanguage' in 1.9 strings --- admin/langimport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/langimport.php b/admin/langimport.php index 7c444f2967b..bcffb56f04d 100755 --- a/admin/langimport.php +++ b/admin/langimport.php @@ -248,7 +248,7 @@ if ($parent == 'en_utf8') { continue; } - if (strpos($parent, '[[') !== false) { + if (empty($parent) || strpos($parent, '[[') !== false) { continue; // no parent } if (!isset($installedlangs[$parent])) {