Fix failing using tests. Legacy will contain a set of images to be removed in the future.

This commit is contained in:
Paulo Veiga
2011-11-27 21:28:39 -03:00
parent 923cd8ae11
commit 0b6fcdb980
173 changed files with 5 additions and 4 deletions

View File

@@ -213,11 +213,11 @@ public class ExporterFactory {
int index = imgUrl.lastIndexOf("/");
elem.removeAttribute("href");
if (index != -1) {
final String iconName = imgUrl.substring(index);
final String iconName = imgUrl.substring(index+1);
// Hack for backward compatibility . This can be removed in 2012. :)
String imgPath;
if (imgUrl.contains("images")) {
imgPath = imgBaseUrl + "/../images/" + iconName;
imgPath = imgBaseUrl + "/../icons/legacy/" + iconName;
} else {
imgPath = imgBaseUrl + "/" + imgUrl;
}