fix cbf395c for v. 2.24

we only need the modifier where a DOT is already used
This commit is contained in:
Ian 2016-04-13 12:42:18 +02:00
parent cbf395c15c
commit 8cbd1e6232

View file

@ -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);