From 25795534f4ba9b312e6bff21f80f17db6c94bbcc Mon Sep 17 00:00:00 2001 From: Michael Milette Date: Wed, 1 May 2024 23:17:43 -0400 Subject: [PATCH] {iftheme} tag now works even at beginning of string. --- filter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filter.php b/filter.php index 18e0170..4fd6c07 100644 --- a/filter.php +++ b/filter.php @@ -4598,7 +4598,7 @@ function ($matches) use ($mycohorts) { // Description: Display content only if the current theme matches the one specified. // Parameters: The name of the directory in which the theme is located. // Requires content between tags. - if (stripos($text, '{iftheme ') != false) { + if (stripos($text, '{/iftheme') !== false) { $theme = strtolower($PAGE->theme->name); $re = '/{iftheme\s+(.*)\}(.*)\{\/iftheme\}/isuU'; $found = preg_match_all($re, $text, $matches);