Ticket #6324: mythweb_set_autocommflag.diff

File mythweb_set_autocommflag.diff, 1.9 KB (added by Shane Shrybman, 12 years ago)
  • mythweb/includes/utils.php

     
    7777 * Queries the database settings table for a particular setting, and returns its value
    7878/**/
    7979    function get_backend_setting($setting, $host = null) {
    80         if (is_null($host))
    81             $host = '%';
    8280        return setting($setting, $host);
    8381    }
    8482
  • mythweb/modules/tv/detail.php

     
    299299    else
    300300        $channel =& load_one_channel($schedule->chanid);
    301301
     302// Check if the program or the channel is commercial free
     303    if ($program && $program->recordid)
     304        $schedule->autocommflag = !$program->commfree;
     305    elseif ($channel->commmethod == -2)
     306        $schedule->autocommflag = 0;
     307
    302308// Parse the list of scheduled recordings for possible conflicts
    303309    global $Scheduled_Recordings;
    304310    $conflicting_shows = array();
  • mythweb/modules/tv/classes/Channel.php

     
    2727    var $colour;
    2828    var $visible;
    2929    var $programs = array();
     30    var $commmethod;
    3031
    3132    /* public */
    3233    function __construct($channel_data) {
     
    4344        $this->colour       = $channel_data['colour'];
    4445        $this->visible      = $channel_data['visible'];
    4546        $this->icon         = 'data/tv_icons/'.basename($channel_data['icon']);
     47        $this->commmethod   = $channel_data['commmethod'];
    4648    // Try to copy over any missing channel icons
    4749        if ($channel_data['icon'] && !file_exists($this->icon)) {
    4850        // Local file?