diff --git a/bs_change_mime_type.php b/bs_change_mime_type.php index c59fa181a..cb9599dda 100644 --- a/bs_change_mime_type.php +++ b/bs_change_mime_type.php @@ -1,4 +1,5 @@ get('Servers'); - $serverCfg = $serverCfg[$PMA_Config->settings['ServerDefault']]; + $serverCfg = $serverCfg[$GLOBALS['server']]; - // return if unable to retrieve default server configuration - if (!$serverCfg) + // return if unable to retrieve current server configuration + if (! $serverCfg) return FALSE; // if PHP extension in use is 'mysql', specify element 'PersistentConnections' @@ -694,12 +695,12 @@ function PMA_BS_CreateReferenceLink($bs_reference, $db_name) break; // audio content case 'audio/mpeg': - $output .= ' (Play Audio)'; + $output .= ' (Play Audio)'; break; // video content case 'application/x-flash-video': case 'video/mpeg': - $output .= ' (View Video)'; + $output .= ' (View Video)'; break; // unsupported content. specify download default: