From: Jens Frank Date: Tue, 1 Jun 2004 06:02:13 +0000 (+0000) Subject: thumbs with alt text starting with center or ending in centre are centred, which... X-Git-Tag: 1.5.0alpha1~3104 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=d4f2fe39ead4cab5a371270a979518d0cb4a34a1;p=lhc%2Fweb%2Fwiklou.git thumbs with alt text starting with center or ending in centre are centred, which they shouldn't. BUG #963876 --- diff --git a/includes/MagicWord.php b/includes/MagicWord.php index 9089d5108a..bb7b7c1640 100644 --- a/includes/MagicWord.php +++ b/includes/MagicWord.php @@ -110,7 +110,7 @@ class MagicWord { $this->mRegexStart = "/^{$this->mBaseRegex}/{$case}"; $this->mVariableRegex = str_replace( "\\$1", "([$variableClass]*?)", $this->mRegex ); $this->mVariableStartToEndRegex = str_replace( "\\$1", "([$variableClass]*?)", - "/^{$this->mBaseRegex}$/{$case}" ); + "/^({$this->mBaseRegex})$/{$case}" ); } # Gets a regex representing matching the word