From 8cbd1e6232bf1ca25591fd1b4e83b3469431e10f Mon Sep 17 00:00:00 2001 From: Ian Date: Wed, 13 Apr 2016 12:42:18 +0200 Subject: [PATCH] fix cbf395c for v. 2.24 we only need the modifier where a DOT is already used --- .../serendipity_event_multilingual.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serendipity_event_multilingual/serendipity_event_multilingual.php b/serendipity_event_multilingual/serendipity_event_multilingual.php index 386bf0b1..cf80b1bb 100755 --- a/serendipity_event_multilingual/serendipity_event_multilingual.php +++ b/serendipity_event_multilingual/serendipity_event_multilingual.php @@ -325,7 +325,7 @@ class serendipity_event_multilingual extends serendipity_event if (empty($match)) continue; // Last block part, skip it. if (stristr($match, '{{!' . $serendipity['lang'] . '}}')) { // Current language found. Keep the string, minus the {{!xx}} part. - $out .= preg_replace('@\{\{!' . $serendipity['lang'] . '\}\}@s', '', $match); + $out .= preg_replace('@\{\{!' . $serendipity['lang'] . '\}\}@', '', $match); } else { // Current language not found. Remove everything after {{!xx}}. $out .= preg_replace('@\{\{![^\}]+\}\}.+$@s', '', $match);