Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Delisle <marc@infomarc.info>2014-04-08 18:03:58 +0400
committerMarc Delisle <marc@infomarc.info>2014-04-08 18:03:58 +0400
commit09b54ed19be4868ac3a36fe0a19fb27514f629b3 (patch)
tree0715d7f624b2ecfc67a7895ad9dbdf6d42c4d637 /index.php
parent111fb2f64666b1e2aedc51597322d4cc967e35ed (diff)
Put back code lost since 2a8962aa95ba5f8b11439bfe3e9ecc88decb2c88
Signed-off-by: Marc Delisle <marc@infomarc.info>
Diffstat (limited to 'index.php')
-rw-r--r--index.php20
1 files changed, 7 insertions, 13 deletions
diff --git a/index.php b/index.php
index 78cffd27e0..f0d4f054dd 100644
--- a/index.php
+++ b/index.php
@@ -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,