Ticket #13126: patch.diff

File patch.diff, 1.1 KB (added by Francois Gouget <fgouget@…>, 2 years ago)

Fixes #13126 - A program's category type is not localized.

  • modules/tv/tmpl/default/list_cell_program.php

    commit db049bb62c02f9812da002c40f89df5a8a6e638a
    Author: Francois Gouget <fgouget@free.fr>
    Date:   Mon Sep 18 01:25:23 2017 +0200
    
        Fixes 13126 - A program's category type is not localized.
        
        This fixes handling of movies so one gets the original airdata and
        stars rating on the Listings page.
        
        Signed-off-by: Francois Gouget <fgouget@free.fr>
    
    diff --git a/modules/tv/tmpl/default/list_cell_program.php b/modules/tv/tmpl/default/list_cell_program.php
    index 83d49bcf..0ee2abe9 100644
    a b  
    3636        echo '</a>';
    3737
    3838    // Print some additional information for movies
    39         if (   strcasecmp($program->category_type, t('movie')) == 0
    40             || strcasecmp($program->category_type, t('film'))  == 0) {
     39        if (   strcasecmp($program->category_type, 'movie') == 0
     40            || strcasecmp($program->category_type, 'film')  == 0) {
    4141            $parens = '';
    4242            if ($program->airdate > 0)
    4343                $parens = sprintf('%4d', $program->airdate);