1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-29 21:24:44 +03:00

Merge branch 'QA_5_2'

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth
2022-06-06 17:07:13 -03:00
4 changed files with 7 additions and 16 deletions

View File

@@ -10,6 +10,7 @@ phpMyAdmin - ChangeLog
- issue #17519 Fix Export pages not working in certain conditions
- issue #17496 Fix error in table operation page when partitions are broken
- issue #17386 Fix system memory and system swap values on Windows
- issue #17517 Fix Database Server panel not getting hidden by ShowServerInfo configuration directive
5.2.0 (2022-05-10)
- issue #16521 Upgrade Bootstrap to version 5

View File

@@ -150,20 +150,14 @@ class HomeController extends AbstractController
}
$databaseServer = [];
if ($GLOBALS['server'] > 0) {
if ($GLOBALS['server'] > 0 && $GLOBALS['cfg']['ShowServerInfo']) {
$hostInfo = '';
if (! empty($GLOBALS['cfg']['Server']['verbose'])) {
$hostInfo .= $GLOBALS['cfg']['Server']['verbose'];
if ($GLOBALS['cfg']['ShowServerInfo']) {
$hostInfo .= ' (';
}
$hostInfo .= $GLOBALS['cfg']['Server']['verbose'] . ' (';
}
if ($GLOBALS['cfg']['ShowServerInfo'] || empty($GLOBALS['cfg']['Server']['verbose'])) {
$hostInfo .= $this->dbi->getHostInfo();
}
if (! empty($GLOBALS['cfg']['Server']['verbose']) && $GLOBALS['cfg']['ShowServerInfo']) {
$hostInfo .= $this->dbi->getHostInfo();
if (! empty($GLOBALS['cfg']['Server']['verbose'])) {
$hostInfo .= ')';
}

View File

@@ -2199,13 +2199,12 @@
</MixedArrayAssignment>
</file>
<file src="libraries/classes/Controllers/HomeController.php">
<InvalidArrayOffset occurrences="10">
<InvalidArrayOffset occurrences="9">
<code>$GLOBALS['cfg']['LoginCookieValidityDisableWarning']</code>
<code>$GLOBALS['cfg']['NavigationDisplayServers']</code>
<code>$GLOBALS['cfg']['PmaNoRelation_DisableWarning']</code>
<code>$GLOBALS['cfg']['ShowChgPassword']</code>
<code>$GLOBALS['cfg']['ShowPhpInfo']</code>
<code>$GLOBALS['cfg']['ShowServerInfo']</code>
<code>$GLOBALS['cfg']['SuhosinDisableWarning']</code>
<code>$GLOBALS['cfg']['ThemeManager']</code>
<code>$GLOBALS['cfg']['TranslationWarningThreshold']</code>
@@ -2231,10 +2230,6 @@
<PossiblyNullArrayOffset occurrences="1">
<code>$GLOBALS['language_stats']</code>
</PossiblyNullArrayOffset>
<PossiblyUndefinedArrayOffset occurrences="2">
<code>$GLOBALS['cfg']['ShowServerInfo']</code>
<code>$GLOBALS['cfg']['ShowServerInfo']</code>
</PossiblyUndefinedArrayOffset>
<UnusedVariable occurrences="1">
<code>$collationsList</code>
</UnusedVariable>

View File

@@ -203,6 +203,7 @@
ShowFunctionFields: bool,
ShowHint: bool,
ShowPropertyComments: bool,
ShowServerInfo: bool,
ShowSQL: bool,
ShowStats: bool,
TextareaAutoSelect: bool,