diff options
author | Marc Delisle <marc@infomarc.info> | 2014-04-08 18:03:58 +0400 |
---|---|---|
committer | Marc Delisle <marc@infomarc.info> | 2014-04-08 18:03:58 +0400 |
commit | 09b54ed19be4868ac3a36fe0a19fb27514f629b3 (patch) | |
tree | 0715d7f624b2ecfc67a7895ad9dbdf6d42c4d637 /index.php | |
parent | 111fb2f64666b1e2aedc51597322d4cc967e35ed (diff) |
Put back code lost since 2a8962aa95ba5f8b11439bfe3e9ecc88decb2c88
Signed-off-by: Marc Delisle <marc@infomarc.info>
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 20 |
1 files changed, 7 insertions, 13 deletions
@@ -304,12 +304,7 @@ if ($GLOBALS['cfg']['ShowServerInfo'] || $GLOBALS['cfg']['ShowPhpInfo']) { if ($server > 0) { $client_version_str = $GLOBALS['dbi']->getClientInfo(); - if (preg_match('#\d+\.\d+\.\d+#', $client_version_str) - && in_array( - $GLOBALS['cfg']['Server']['extension'], - array('mysql', 'mysqli') - ) - ) { + if (preg_match('#\d+\.\d+\.\d+#', $client_version_str)) { $client_version_str = 'libmysql - ' . $client_version_str; } PMA_printListItem( @@ -317,15 +312,14 @@ if ($GLOBALS['cfg']['ShowServerInfo'] || $GLOBALS['cfg']['ShowPhpInfo']) { 'li_mysql_client_version' ); - $php_ext_string = __('PHP extension:') . ' ' - . $GLOBALS['cfg']['Server']['extension'] . ' '; - if (!empty($GLOBALS['cfg']['Server']['extension'])) { - $php_ext_string .= PMA_Util::showPHPDocu( - 'book.' . $GLOBALS['cfg']['Server']['extension'] . '.php' - ); + $php_ext_string = __('PHP extension:') . ' '; + if (PMA_DatabaseInterface::checkDbExtension('mysqli')) { + $extension = 'mysqli'; } else { - $php_ext_string .= __('None'); + $extension = 'mysql'; } + $php_ext_string .= $extension . ' ' + . PMA_Util::showPHPDocu( 'book.' . $extension . '.php'); PMA_printListItem( $php_ext_string, |