• Resolved mortenf

    (@mortenf)


    When using a specific template filename for showing posts, it sometimes results in a PHP warning, resulting in the output not showing up.

    Trying to use e.g. klip.php results in the plugin trying to locate kli.php – which of course doesn’t exist.

    The reason is the invalid use of rtrim in the getTemplateHierarchy method.

    The function rtrim removes all specified characters from the right of the input, so ‘.php’ ends up removing ‘p.php’…

    https://www.ads-software.com/extend/plugins/flexible-posts-widget/

Viewing 1 replies (of 1 total)
  • Plugin Author DaveE

    (@dpe415)

    Hi mortenf,

    Thank you for bringing that to my attention. I can’t believe it’s gone unnoticed this long. In any case, I just pushed out a bug release with that rtrim replaced by a preg_replace.

    Thanks again!

Viewing 1 replies (of 1 total)
  • The topic ‘Template problem with rtrim’ is closed to new replies.