fix cbf395c
for v. 2.24
we only need the modifier where a DOT is already used
This commit is contained in:
parent
cbf395c15c
commit
8cbd1e6232
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue