Plugin Directory

Changeset 753109


Ignore:
Timestamp:
08/07/2013 05:34:50 PM (13 years ago)
Author:
bhengh
Message:

Updating to 0.45.11 (WordPress 3.6 compatibility fix related to getid3 lib)

Location:
sermon-browser/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • sermon-browser/trunk/sb-includes/admin.php

    r737860 r753109  
    14641464    $id3_tags = array();
    14651465    if (isset($_GET['getid3'])) {
    1466         require_once(SB_INCLUDES_DIR.'/getid3/getid3.php');
    14671466        $file_data = $wpdb->get_row("SELECT name, type FROM {$wpdb->prefix}sb_stuff WHERE id = ".$wpdb->escape($_GET['getid3']));
    14681467        if ($file_data !== NULL) {
     1468            if ( ! class_exists( 'getID3' ) ) {
     1469                if ( version_compare(get_bloginfo('version'), '3.6', '<') )
     1470                    require(SB_INCLUDES_DIR.'/getid3/getid3.php');             
     1471                else
     1472                    require( ABSPATH . WPINC . '/ID3/getid3.php' );
     1473            }
    14691474            $getID3 = new getID3;
    14701475            if ($file_data->type == 'url') {
     
    21392144    if (stripos(sb_get_option('mp3_shortcode'), '%SERMONURL%') === FALSE) {
    21402145        echo '<div id="message" class="updated fade"><p><b>';
    2141         _e('Error:</b> The MP3 shortcode must link to individual sermon files. You do this by including <span style="color:red">%SERMONURL%</span> in your shortcode (e.g. [audio:%SERMONURL%]). SermonBrowser will then replace %SERMONURL% with a link to each sermon.', $sermon_domain);
     2146        _e('Error:</b> The MP3 shortcode must link to individual sermon files. You do this by including <span style="color:red">%SERMONURL%</span> in your shortcode (e.g. [audio mp3="%SERMONURL%"]). SermonBrowser will then replace %SERMONURL% with a link to each sermon.', $sermon_domain);
    21422147        echo '</div>';
    21432148    } elseif (do_shortcode(sb_get_option('mp3_shortcode')) == sb_get_option('mp3_shortcode')) {
    2144         if ((substr(sb_get_option('mp3_shortcode'), 0, 18) == '[audio:%SERMONURL%') && !function_exists('ap_insert_player_widgets')) {
    2145             if ($wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sb_stuff WHERE name LIKE '%.mp3'")>0)
    2146                 echo '<div id="message" class="updated"><p><b>'.sprintf(__('Tip: Installing the %1$sWordpress Audio Player%2$s, or another Wordpress MP3 player plugin will allow users to listen to your sermons more easily.', $sermon_domain), '<a href="'.site_url().'/wp-admin/plugin-install.php?tab=search&s=audio%20player&type=term&search=Search">', '</a>').'</b></div>';
    2147         } elseif (substr(sb_get_option('mp3_shortcode'), 0, 18) != '[audio:%SERMONURL%') {
    2148             echo '<div id="message" class="updated fade"><p><b>';
    2149             _e('Error:</b> You have specified a custom MP3 shortcode, but Wordpress doesn&#146;t know how to interpret it. Make sure the shortcode is correct, and that the appropriate plugin is activated.', $sermon_domain);
    2150             echo '</div>';
    2151         }
     2149        echo '<div id="message" class="updated fade"><p><b>';
     2150        _e('Error:</b> You have specified a custom MP3 shortcode, but Wordpress doesn&#146;t know how to interpret it. Make sure the shortcode is correct, and that the appropriate plugin is activated.', $sermon_domain);
     2151        echo '</div>';
    21522152    }
    21532153    if (sb_display_url() == "") {
  • sermon-browser/trunk/sb-includes/podcast.php

    r389293 r753109  
    2929            return $duration;
    3030        else {
    31             require_once(SB_INCLUDES_DIR.'/getid3/getid3.php');
     31            if ( ! class_exists( 'getID3' ) ) {
     32                if ( version_compare(get_bloginfo('version'), '3.6', '<') )
     33                    require(SB_INCLUDES_DIR.'/getid3/getid3.php');             
     34                else
     35                    require( ABSPATH . WPINC . '/ID3/getid3.php' );
     36            }
    3237            $getID3 = new getID3;
    3338            $MediaFileInfo = $getID3->analyze(SB_ABSPATH.sb_get_option('upload_dir').$media_name);
  • sermon-browser/trunk/sermon.php

    r748934 r753109  
    55Description: Upload sermons to your website, where they can be searched, listened to, and downloaded. Easy to use with comprehensive help and tutorials.
    66Author: Mark Barnes
    7 Version: 0.45.10
     7Version: 0.45.11
    88Author URI: http://www.4-14.org.uk/
    99
     
    5454* @package common_functions
    5555*/
    56 define('SB_CURRENT_VERSION', '0.45.10');
     56define('SB_CURRENT_VERSION', '0.45.11');
    5757define('SB_DATABASE_VERSION', '1.7');
    5858sb_define_constants();
     
    709709    define ('SB_INCLUDES_DIR', SB_PLUGIN_DIR.'/sermon-browser/sb-includes');
    710710    define ('SB_ABSPATH', sb_sanitise_path(ABSPATH));
    711     define ('GETID3_INCLUDEPATH', SB_PLUGIN_DIR.'/'.plugin_basename(dirname(__FILE__)).'/sb-includes/getid3/');
    712     define ('GETID3_HELPERAPPSDIR', GETID3_INCLUDEPATH);
     711    if ( version_compare(get_bloginfo('version'), '3.6', '<') ) {
     712        define ('GETID3_INCLUDEPATH', SB_PLUGIN_DIR.'/'.plugin_basename(dirname(__FILE__)).'/sb-includes/getid3/');
     713        define ('GETID3_HELPERAPPSDIR', GETID3_INCLUDEPATH);
     714    }
    713715}
    714716
Note: See TracChangeset for help on using the changeset viewer.