bug #3119884, path not found (in case the kit is English-only)

This commit is contained in:
Marc Delisle
2010-11-28 07:40:29 -05:00
parent 586279a0af
commit 0d6cc8ca55

View File

@@ -343,10 +343,8 @@ function PMA_langList()
/* Open the directory */ /* Open the directory */
$handle = @opendir($GLOBALS['lang_path']); $handle = @opendir($GLOBALS['lang_path']);
/* This can happen if the kit is English-only */
if ($handle === FALSE) { if ($handle === FALSE) {
trigger_error('phpMyAdmin: path not found: '
. $GLOBALS['lang_path'] . ', check your language directory.',
E_USER_WARNING);
return $result; return $result;
} }
@@ -363,7 +361,7 @@ function PMA_langList()
} }
/** /**
* @global string path to the translations directory * @global string path to the translations directory; may be absent if the kit is English-only
*/ */
$GLOBALS['lang_path'] = './locale/'; $GLOBALS['lang_path'] = './locale/';