Ticket #2281: commfree_notrans.diff

File commfree_notrans.diff, 2.0 KB (added by ryan.buschert@…, 19 years ago)

Patch file without translation file additions -- I think some special characters in the language diff screw up viewing the patch online

  • mythplugins/mythweb/modules/tv/search.php

     
    5454        $_SESSION['search']['stars_gt']      = floatVal($_REQUEST['stars_gt']);
    5555        $_SESSION['search']['stars_lt']      = floatVal($_REQUEST['stars_lt']);
    5656        $_SESSION['search']['hd']            = $_REQUEST['hd'] ? true : false;
     57        $_SESSION['search']['commfree']            = $_REQUEST['commfree'] ? true : false;
    5758        $_SESSION['search']['airdate_start'] = trim($_REQUEST['airdate_start']);
    5859        $_SESSION['search']['airdate_end']   = trim($_REQUEST['airdate_end']);
    5960        $_SESSION['search']['starttime']     = trim($_REQUEST['starttime']);
     
    204205        // HDTV only?
    205206            if ($_SESSION['search']['hd'])
    206207                $extra_query[] = 'program.hdtv=1';
     208        // Commercial-free channels only?
     209            if ($_SESSION['search']['commfree'])
     210                $extra_query[] = 'channel.commfree=1';
    207211        // Build the actual search query
    208212            $query = '';
    209213            foreach ($_SESSION['search']['as'] as $i => $string) {
  • mythplugins/mythweb/modules/tv/tmpl/default/search.php

     
    5959        <input type="checkbox" name="hd" id="hd" value="1"<?php
    6060            if ($_SESSION['search']['hd']) echo ' CHECKED' ?>>
    6161        <label for="hd"><?php echo t('Only match HD programs') ?></label>
     62        <p>
     63        <input type="checkbox" name="commfree" id="commfree" value="1"<?php
     64            if ($_SESSION['search']['commfree']) echo ' CHECKED' ?>>
     65        <label for="commfree"><?php echo t('Only match commercial-free channels') ?></label>
    6266        </p>
    6367        <p>
    6468        Showings between:<br />