Topic RSS
I couldn't find a bug tracker for this project so here goes.
Summary:
MP3 files with file extensions that are not exactly ".mp3" (ie not entirely lowercase) will not have the Download link appear after the audio player on single sermon pages.
Steps to reproduce:
0. Setup Sermon Browser plugin with audio player plugin
1. Create a sermon and upload one MP3 file attachment with extension ".MP3" (case sensitive)
2. View the single sermon page, ie not the entire sermon listing
Results:
Audio player works perfectly fine, but the "Download" link does not appear after the audio player.
Workaround/Fix:
+++ (current document)
@@ -695,7 +695,7 @@
function sb_print_url_link($url) {
echo '<div class="sermon_file">';
sb_print_url ($url);
- if (substr($url, -4) == ".mp3" && function_exists('ap_insert_player_widgets')) {
+ if (strtolower(substr($url, -4)) == ".mp3" && function_exists('ap_insert_player_widgets')) {
if (substr($url,0,7) == "http://") {
$param="url"; }
else {
It appears to be the only remaining instance where strtolower is not invoked for a comparison, involving .MP3 files.
Most Users Ever Online: 40
Currently Online:
18 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
malpan: 2453
jogen: 2440
VanWatterson: 652
GeraldSebring: 364
LucasWoltman: 362
RandellFeenstra: 362
Member Stats:
Guest Posters: 7
Members: 2062
Moderators: 1
Admins: 1
Forum Stats:
Groups: 1
Forums: 2
Topics: 1071
Posts: 4042
Newest Members: richdorm, Aaron Velasquez, aaronv, dave5884, tomduckering, ccwebb
Moderators: Ben Miller (386)
Administrators: Mark Barnes (425)
Log In
Register
Home
Offline


