From 6a2b8882ded52a84eb141ef8a68a02396640fbfc Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 4 Dec 2012 14:13:36 +0000 Subject: [PATCH] for replaceTagsCompletely modify the prex for singeltons (as we are in Ungreedy mode, so we expect * to be ungreedy without specifying ?) --- phpgwapi/inc/class.translation.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.translation.inc.php b/phpgwapi/inc/class.translation.inc.php index a5e662652a..ce00aade66 100644 --- a/phpgwapi/inc/class.translation.inc.php +++ b/phpgwapi/inc/class.translation.inc.php @@ -983,7 +983,8 @@ class translation if ($_body) { if ($singleton) { - $_body = preg_replace('~<'.$tag.'[^>].*? '.$endtag.'~simU','',$_body); + //$_body = preg_replace('~<'.$tag.'[^>].*? '.$endtag.'~simU','',$_body); + $_body = preg_replace('~].* '.$endtag.'~simU','',$_body); // we are in Ungreedy mode, so we expect * to be ungreedy without specifying ? } else {