From: Liangent Date: Fri, 31 Aug 2012 17:30:05 +0000 (+0800) Subject: Convert -{}- markups in title="" and alt="". X-Git-Tag: 1.31.0-rc.0~22076^2 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dcompta/comptes/journal.php?a=commitdiff_plain;h=21ffa7a0789eab25ca76b40a168e3de2738f8066;p=lhc%2Fweb%2Fwiklou.git Convert -{}- markups in title="" and alt="". convertTo() is used to replace translate() currently in use to do conversion for some attributes of HTML tags. Change-Id: Iee3ec2913787f15616abe6cf8880b59a883c82a0 --- diff --git a/languages/LanguageConverter.php b/languages/LanguageConverter.php index cbd5d9ae9d..fe670e1fa4 100644 --- a/languages/LanguageConverter.php +++ b/languages/LanguageConverter.php @@ -406,7 +406,7 @@ class LanguageConverter { $attr = $attrs[$attrName]; // Don't convert URLs if ( !strpos( $attr, '://' ) ) { - $attr = $this->translate( $attr, $toVariant ); + $attr = $this->convertTo( $attr, $toVariant ); } // Remove HTML tags to avoid disrupting the layout