From 28bf96d79a1a7793e3135d6e00effa91fdc70367 Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 4 Dec 2012 14:20:44 +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 92b750a217..c37621e038 100644 --- a/phpgwapi/inc/class.translation.inc.php +++ b/phpgwapi/inc/class.translation.inc.php @@ -982,7 +982,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 {