Skip to content

Commit

Permalink
Fixes 13126 - A program's category type is not localized.
Browse files Browse the repository at this point in the history
This fixes handling of movies so one gets the original airdate and
star rating on the Listings page.

Signed-off-by: Francois Gouget <[email protected]>
  • Loading branch information
fgouget committed Sep 17, 2017
1 parent ece58eb commit 6015dab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/tv/tmpl/default/list_cell_program.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class = "program"
echo '</a>';

// Print some additional information for movies
if ( strcasecmp($program->category_type, t('movie')) == 0
|| strcasecmp($program->category_type, t('film')) == 0) {
if ( strcasecmp($program->category_type, 'movie') == 0
|| strcasecmp($program->category_type, 'film') == 0) {
$parens = '';
if ($program->airdate > 0)
$parens = sprintf('%4d', $program->airdate);
Expand Down

0 comments on commit 6015dab

Please sign in to comment.