Ticket #6324: mythweb_set_autocommflag.diff
File mythweb_set_autocommflag.diff, 1.9 KB (added by , 15 years ago) |
---|
-
mythweb/includes/utils.php
77 77 * Queries the database settings table for a particular setting, and returns its value 78 78 /**/ 79 79 function get_backend_setting($setting, $host = null) { 80 if (is_null($host))81 $host = '%';82 80 return setting($setting, $host); 83 81 } 84 82 -
mythweb/modules/tv/detail.php
299 299 else 300 300 $channel =& load_one_channel($schedule->chanid); 301 301 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 302 308 // Parse the list of scheduled recordings for possible conflicts 303 309 global $Scheduled_Recordings; 304 310 $conflicting_shows = array(); -
mythweb/modules/tv/classes/Channel.php
27 27 var $colour; 28 28 var $visible; 29 29 var $programs = array(); 30 var $commmethod; 30 31 31 32 /* public */ 32 33 function __construct($channel_data) { … … 43 44 $this->colour = $channel_data['colour']; 44 45 $this->visible = $channel_data['visible']; 45 46 $this->icon = 'data/tv_icons/'.basename($channel_data['icon']); 47 $this->commmethod = $channel_data['commmethod']; 46 48 // Try to copy over any missing channel icons 47 49 if ($channel_data['icon'] && !file_exists($this->icon)) { 48 50 // Local file?