Template problem with rtrim
-
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 locatekli.php
– which of course doesn’t exist.The reason is the invalid use of
rtrim
in thegetTemplateHierarchy
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)
Viewing 1 replies (of 1 total)
- The topic ‘Template problem with rtrim’ is closed to new replies.