dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d01e022
)
Convert -{}- markups in title="" and alt="".
author
Liangent
<liangent@gmail.com>
Fri, 31 Aug 2012 17:30:05 +0000
(
01:30
+0800)
committer
Liangent
<liangent@gmail.com>
Fri, 31 Aug 2012 18:46:15 +0000
(
02:46
+0800)
convertTo() is used to replace translate() currently in use to
do conversion for some attributes of HTML tags.
Change-Id: Iee3ec2913787f15616abe6cf8880b59a883c82a0
languages/LanguageConverter.php
patch
|
blob
|
history
diff --git
a/languages/LanguageConverter.php
b/languages/LanguageConverter.php
index
cbd5d9a
..
fe670e1
100644
(file)
--- 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