From 273ec1b240569e959e7c91772d729896d9af0c3e Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Sun, 28 Jun 2009 01:16:56 +0000 Subject: [PATCH] ENHANCEMENT: Don't look for i18n lang files in hidden directories git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@80236 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/i18n.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/i18n.php b/core/i18n.php index 69a7dda37..59db740e9 100755 --- a/core/i18n.php +++ b/core/i18n.php @@ -1736,7 +1736,7 @@ class i18n extends Object { foreach($topLevel as $module) { //$topLevel is the website root, some server is configurated not to allow excess website root's parent level //and we don't need to check website root's parent level and websit root level for its lang folder, so we skip these 2 levels checking. - if($module == ".." || $module == ".") continue; + if($module[0] == '.') continue; if (file_exists(Director::getAbsFile("$module/_config.php")) && file_exists($file = Director::getAbsFile("$module/lang/$locale.php"))) { include_once($file);