Ticket #837: mythweb.typos.diff

File mythweb.typos.diff, 3.2 KB (added by Robert Tsai <rtsai1111>, 18 years ago)
  • themes/default/video/video.php

     
    5858
    5959<table width="100%" border="0" cellpadding="4" cellspacing="2" class="list small">
    6060<tr class="menu">
    61 <?php   if (show_recorded_pixmap) { ?>
     61<?php   if (show_video_covers) { ?>
    6262    <td><?php echo t('cover') ?></td>
    6363<?php   } ?>
    6464    <td><a href="<?php echo root ?>video?sortby=title"><?php    echo t('title') ?></a></td>
     
    7676    foreach ($All_Shows as $show) {
    7777    ?><tr class="recorded">
    7878    <td><?php
    79         if (show_recorded_pixmaps && file_exists(video_img_path.'/'.basename($show->coverfile)))
    80             echo '<a href="'.$show->url.'">.<img id="'.htmlentities($show->filename).'" src="'.video_img_path.'/'.basename($show->coverfile).'" width="'.video_img_width.'" height="'.video_img_height.'">';
     79        if (show_video_covers && file_exists(video_img_path.'/'.basename($show->coverfile)))
     80            echo '<a href="'.$show->url.'"><img id="'.htmlentities($show->filename).'" src="'.video_img_path.'/'.basename($show->coverfile).'" width="'.video_img_width.'" height="'.video_img_height.'">';
    8181        else
    8282            echo '&nbsp;';
    8383    ?></td>
  • themes/default/tv/list.php

     
    145145                if (is_file($channel->icon)) {
    146146                    ?><a href="<?php echo root ?>tv/channel/<?php echo $channel->chanid ?>&time=<?php echo $list_starttime ?>"
    147147                        onmouseover="return wstatus('<?php echo t('Details for') ?>: <?php echo preg_replace("/([\"'])/", '\\\$1', $channel->channum.' '.$channel->callsign) ?>')"
    148                         onmouseout="return wstatus('')"><img src="<?php echo $channel->icon ?>" height="30" width="30"></a><?php
     148                        onmouseout="return wstatus('')"><img src="<?php echo "../$channel->icon" ?>" height="30" width="30"></a><?php
    149149                } else {
    150150                    echo '&nbsp;';
    151151                } ?></td>
  • config/conf.php

     
    115115    define('pixmap_width',  160);
    116116    define('pixmap_height', 120);
    117117
     118/*
     119
     120    The following constants are defined for the videos page
     121
     122*/
     123    define('show_video_covers', true);
     124
    118125// height and width of generated pixmaps for video thumbnails
    119126    define('video_img_width',  94);
    120127    define('video_img_height', 140);
  • mythweb.php

     
    2424        require_once 'modules/'.$Path[0].'/handler.php';
    2525    }
    2626    elseif (!empty($Path[0]) && preg_match('/\w/', $Path[0])) {
    27         require_once 'templates/_unknown_module.php';
     27        if (readfile(implode('/', $Path)) === false)
     28            require_once 'templates/_unknown_module.php';
    2829    }
    2930    else {
    3031    # check to make sure the user didn't want the old style page