[Phpmyadmin-git] [SCM] phpMyAdmin branch, master, updated. RELEASE_3_4_0RC2-734-gece21fb
Michal Čihař
nijel at users.sourceforge.net
Thu May 5 09:08:48 CEST 2011
The branch, master has been updated
via ece21fbe9a0c32dba0b9dcdd52849dcef49c5ddb (commit)
from 56fc953b57c3f5878c90daa2fe43f8fbeca9fff8 (commit)
- Log -----------------------------------------------------------------
commit ece21fbe9a0c32dba0b9dcdd52849dcef49c5ddb
Author: Michal Čihař <michal at cihar.com>
Date: Thu May 5 09:08:37 2011 +0200
Check if directory exists
-----------------------------------------------------------------------
Summary of changes:
libraries/select_lang.lib.php | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/libraries/select_lang.lib.php b/libraries/select_lang.lib.php
index 2751df3..08a5b2f 100644
--- a/libraries/select_lang.lib.php
+++ b/libraries/select_lang.lib.php
@@ -339,6 +339,11 @@ function PMA_langList()
/* We can always speak English */
$result = array('en' => PMA_langDetails('en'));
+ /* Check for existing directory */
+ if (!is_dir($GLOBALS['lang_path'])) {
+ return $result;
+ }
+
/* Open the directory */
$handle = @opendir($GLOBALS['lang_path']);
/* This can happen if the kit is English-only */
hooks/post-receive
--
phpMyAdmin
More information about the Git
mailing list