From: pdontthink Date: Tue, 27 Mar 2007 19:08:15 +0000 (+0000) Subject: Skip .svn dir. Leaving CVS dir in case it is left over in some people's downloaded... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=fdf58ef92a0b69f93bd08e22be831aa8172bfe62;p=squirrelmail.git Skip .svn dir. Leaving CVS dir in case it is left over in some people's downloaded locale packages. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12351 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/include/languages.php b/include/languages.php index c6b93a5a..0fbcc34d 100644 --- a/include/languages.php +++ b/include/languages.php @@ -1002,7 +1002,7 @@ if (is_dir(SM_PATH . 'locale') && $lang_dir = substr($lang_dir,0,-1); } if ($lang_dir != '..' && $lang_dir != '.' && $lang_dir != 'CVS' && - is_dir(SM_PATH.'locale/'.$lang_dir) && + $lang_dir != '.svn' && is_dir(SM_PATH.'locale/'.$lang_dir) && file_exists(SM_PATH.'locale/'.$lang_dir.'/setup.php')) { include_once(SM_PATH.'locale/'.$lang_dir.'/setup.php'); }