Fix for getMultilingualText when there's only monolingual text

Change-Id: I0b69a21225ed6bcf8607f5cef06a298e87820037
This commit is contained in:
Brion Vibber 2013-09-27 14:59:23 -07:00
parent fa4a1d06ac
commit e98cf731a8

View file

@ -218,7 +218,7 @@ public class MediaDataExtractor {
// Hopefully a language code. Nasty hack!
String lang = title;
Node valueNode = findTemplateParameter(node, 1);
String value = Utils.getStringFromDOM(valueNode); // hope there's no subtemplates or formatting for now
String value = valueNode.getTextContent(); // hope there's no subtemplates or formatting for now
texts.put(lang, value);
}
} else if (node.getNodeType() == Node.TEXT_NODE) {