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.phpresults in the plugin trying to locatekli.php– which of course doesn’t exist.The reason is the invalid use of
rtrimin thegetTemplateHierarchymethod.The function
rtrimremoves all specified characters from the right of the input, so ‘.php’ ends up removing ‘p.php’…
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Template problem with rtrim’ is closed to new replies.