summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index dd3a118..1f39013 100644
--- a/it.class
+++ b/it.class
@@ -397,7 +397,7 @@ static function replace($replacements, $string, $p = array())
foreach ($replacements as $pattern => $dummy)
$patterns[] = !preg_match('/\\\\[wb]|[!\x80-\xff]|\[\[:/i', $pattern) && !$p ? "!$pattern!i" : it::convertregex($complex = $pattern, $p);
- if (!$complex)
+ if (!$complex && !$p)
$result = preg_replace($patterns, $replacements, $string);
else
{