Ticket #5072: mythweb_iso8859_15_fix_config.diff
File mythweb_iso8859_15_fix_config.diff, 2.7 KB (added by , 16 years ago) |
---|
-
mythweb/modules/tv/set_channels.php
38 38 recpriority = ?, 39 39 commfree = ?, 40 40 useonairguide = ?, 41 visible = ?'; 41 visible = ?, 42 forceiso8859_15 = ?'; 42 43 $query_params[] = $_POST['xmltvid_'.$chanid]; 43 44 $query_params[] = $_POST['freqid_'.$chanid]; 44 45 $query_params[] = $_POST['finetune_'.$chanid]; … … 51 52 $query_params[] = empty($_POST['commfree_'.$chanid]) ? 0 : 1; 52 53 $query_params[] = empty($_POST['useonairguide_'.$chanid]) ? 0 : 1; 53 54 $query_params[] = empty($_POST['visible_'.$chanid]) ? 0 : 1; 55 $query_params[] = empty($_POST['forceiso8859_15_'.$chanid]) ? 0 : 1; 54 56 // next, the fields that need to have a value, so we won't change them if they were emptied 55 57 if ($_POST['channum_'.$chanid]) { 56 58 $query .= ',channum=?'; -
mythweb/modules/tv/tmpl/default/set_channels.php
34 34 <td width="5%"><?php echo t('commfree') ?></td> 35 35 <td width="5%"><?php echo t('visible') ?></td> 36 36 <td width="5%"><?php echo t('useonairguide') ?></td> 37 <td width="5%"><?php echo t('forceiso8859_15') ?></td> 37 38 </tr><?php 38 39 foreach ($Channels as $channel) { 39 40 ?><tr class="settings" align="center"> … … 54 55 <td><input type="checkbox" name="commfree_<?php echo $channel['chanid'] ?>" value="1"<?php if (!empty($channel['commfree'])) echo ' CHECKED' ?> /></td> 55 56 <td><input type="checkbox" name="visible_<?php echo $channel['chanid'] ?>" value="1"<?php if (!empty($channel['visible'])) echo ' CHECKED' ?> /></td> 56 57 <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> 57 59 </tr><?php 58 60 } 59 61 ?>