Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
750e4c5ab2
@ -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
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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;
|
||||
?>
|
||||
|
||||
|
||||
2
main.php
2
main.php
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user