Merge remote-tracking branch 'origin/master'

This commit is contained in:
Michal Čihař 2012-04-20 20:54:55 +02:00
commit 750e4c5ab2
4 changed files with 9 additions and 4 deletions

View File

@ -32,6 +32,7 @@ phpMyAdmin - ChangeLog
- bug #3468272 [import] Fixed import of ODS with more paragraphs in a cell
- bug #3510196 [core] Improved redirecting with ForceSSL option
+ rfe #3518852 [edit] edit blob but not other binary, new option $cfg['ProtectBinary'] = 'noblob'
+ Hide language select box if there are no locales installed
3.5.1.0 (not yet released)
- bug #3510784 [edit] Limit clause ignored when sort order is remembered

View File

@ -159,9 +159,8 @@ function PMA_auth()
<script type="text/javascript">
//<![CDATA[
// reveal the login form to users with JS enabled
$(document).ready(function () {
$('form.login').show();
$('div.language').show();
$(function () {
$('.hide').show();
});
//]]>
</script>

View File

@ -30,6 +30,11 @@ function PMA_language_cmp(&$a, &$b)
*/
function PMA_select_language($use_fieldset = false, $show_doc = true)
{
if (count($GLOBALS['available_languages']) == 1) {
// no use in switching languages, there is only one available
return;
}
global $cfg, $lang;
?>

View File

@ -133,7 +133,7 @@ echo '<h2>' . __('Appearance Settings') . '</h2>';
echo ' <ul>';
// Displays language selection combo
if (empty($cfg['Lang'])) {
if (empty($cfg['Lang']) && count($GLOBALS['available_languages']) > 1) {
echo '<li id="li_select_lang">';
include_once 'libraries/display_select_lang.lib.php';
PMA_select_language();