Tiles format does not support multilang filter in course topic names

Issue #14 resolved
David Bogner created an issue

Hi David,

when using the plugin https://moodle.org/plugins/filter_multilang2 , and I use the filter in the title of a course section, then the tile format does not apply the filter. Instead the markup is displayed. See screenshot:

I will try so solve that issue and hopefully you accept my pull request.

Kind regards,

David

Comments (7)

  1. David Watson repo owner

    Thanks David it’s a good call and I am happy to merge it.

    Actually I think I should probably change the line 238 to this, to take advantage of the existing method and for consistency with line 314. Can you verify that this would fix your issue?

    $data['title'] = get_section_name($this->course, $this->sectionnum);
    
  2. David Bogner reporter

    Hi David,

    thank you for your feedback and the code proposal. In fact the above line always displays the general section of the course. But this line works:

    $data['title'] = get_section_name($this->course, $thissection);
    

    Kind regards,

    David

  3. David Bogner reporter

    … maybe passing on $section instead of $sectionid on line 314 improves performance a little bit (but as it should be cached anyway)

    Kind regards,

    David

  4. David Watson repo owner

    Thanks David. I am working on some new features in a private branch at present, but have included it there. It should be released later this month. (It has slightly different instance variables which explains our discrepancy above - my apologies for that).

  5. Log in to comment