Can't use String.replace since it's a 1.5ism.
This commit is contained in:
@@ -700,7 +700,7 @@ public abstract class Getdown extends Thread
|
|||||||
File imgpath = null;
|
File imgpath = null;
|
||||||
try {
|
try {
|
||||||
// First try for a localized image.
|
// First try for a localized image.
|
||||||
imgpath = _app.getLocalPath(path.replace(".", "_" + localeStr + "."));
|
imgpath = _app.getLocalPath(StringUtil.replace(path, ".", "_" + localeStr + "."));
|
||||||
return ImageIO.read(imgpath);
|
return ImageIO.read(imgpath);
|
||||||
} catch (IOException ioe) {
|
} catch (IOException ioe) {
|
||||||
// No biggie, we'll try the generic one.
|
// No biggie, we'll try the generic one.
|
||||||
|
|||||||
Reference in New Issue
Block a user