From 3f07d2aff25a775d1c871a257c3a6bac878f33ca Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 23 Aug 2008 13:35:23 +0000 Subject: [PATCH] use current server instead of default server; add vim lines; pass token because bs_play_media did not work after merging to current trunk --- bs_change_mime_type.php | 1 + bs_play_media.php | 1 + js/functions.js | 5 +++-- libraries/blobstreaming.lib.php | 13 +++++++------ 4 files changed, 12 insertions(+), 8 deletions(-) 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: