Skip to content

Commit

Permalink
Don't show template recording rules in mythweb
Browse files Browse the repository at this point in the history
Trying to edit a recording rule template with mythweb can cause it to
be deleted.  This hack makes mythweb ignore template recording rules
until someone with real PHP skills can add full support for them.

Fixes #10977
  • Loading branch information
David Engel committed Aug 15, 2012
1 parent 7232c54 commit ff51537
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/tv/includes/recording_schedules.php
Expand Up @@ -23,6 +23,7 @@
define('rectype_dontrec', 8);
define('rectype_finddaily', 9);
define('rectype_findweekly', 10);
define('rectype_template', 11);

// Define the search types
define('searchtype_power', 1);
Expand Down
3 changes: 3 additions & 0 deletions modules/tv/tmpl/default/schedules.php
Expand Up @@ -88,6 +88,9 @@ function attempt_to_show_tip(element) {
$prev_group = '';
$cur_group = '';
foreach ($the_schedules as $schedule) {
// Ignore templates until full support can be added
if ($schedule->type == rectype_template)
continue;
// Reset the command variable to a default URL
$urlstr = 'recordid='.$schedule->recordid;

Expand Down

0 comments on commit ff51537

Please sign in to comment.