Ticket #5072: mythweb_iso8859_15_fix_config.diff

File mythweb_iso8859_15_fix_config.diff, 2.7 KB (added by Wolfgang <mythtv@…>, 16 years ago)
  • mythweb/modules/tv/set_channels.php

     
    3838                                             recpriority   = ?,
    3939                                             commfree      = ?,
    4040                                             useonairguide = ?,
    41                                              visible       = ?';
     41                                             visible       = ?,
     42                                             forceiso8859_15  = ?';
    4243                $query_params[] = $_POST['xmltvid_'.$chanid];
    4344                $query_params[] = $_POST['freqid_'.$chanid];
    4445                $query_params[] = $_POST['finetune_'.$chanid];
     
    5152                $query_params[] = empty($_POST['commfree_'.$chanid])      ? 0 : 1;
    5253                $query_params[] = empty($_POST['useonairguide_'.$chanid]) ? 0 : 1;
    5354                $query_params[] = empty($_POST['visible_'.$chanid])       ? 0 : 1;
     55                $query_params[] = empty($_POST['forceiso8859_15_'.$chanid]) ? 0 : 1;
    5456            // next, the fields that need to have a value, so we won't change them if they were emptied
    5557                if ($_POST['channum_'.$chanid]) {
    5658                    $query         .= ',channum=?';
  • mythweb/modules/tv/tmpl/default/set_channels.php

     
    3434    <td width="5%"><?php  echo t('commfree')      ?></td>
    3535    <td width="5%"><?php  echo t('visible')       ?></td>
    3636    <td width="5%"><?php  echo t('useonairguide') ?></td>
     37    <td width="5%"><?php  echo t('forceiso8859_15') ?></td>
    3738</tr><?php
    3839    foreach ($Channels as $channel) {
    3940?><tr class="settings" align="center">
     
    5455    <td><input type="checkbox" name="commfree_<?php           echo $channel['chanid'] ?>" value="1"<?php if (!empty($channel['commfree']))      echo ' CHECKED' ?> /></td>
    5556    <td><input type="checkbox" name="visible_<?php            echo $channel['chanid'] ?>" value="1"<?php if (!empty($channel['visible']))       echo ' CHECKED' ?> /></td>
    5657    <td><input type="checkbox" name="useonairguide_<?php      echo $channel['chanid'] ?>" value="1"<?php if (!empty($channel['useonairguide'])) echo ' CHECKED' ?> /></td>
     58    <td><input type="checkbox" name="forceiso8859_15_<?php      echo $channel['chanid'] ?>" value="1"<?php if (!empty($channel['forceiso8859_15'])) echo ' CHECKED' ?> /></td>
    5759</tr><?php
    5860    }
    5961?>