diff --git a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/cache/HtmCache.java b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/cache/HtmCache.java index 944a93e77f..0a574bce00 100644 --- a/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/cache/HtmCache.java +++ b/L2J_Mobius_1.0_Ertheia/java/org/l2jmobius/gameserver/cache/HtmCache.java @@ -146,7 +146,7 @@ public class HtmCache public String getHtm(PlayerInstance player, String path) { final String prefix = player != null ? player.getHtmlPrefix() : ""; - final String newPath = prefix + path; + String newPath = prefix + path; String content = HTML_CACHE.get(newPath); if (Config.LAZY_CACHE && (content == null)) { @@ -156,9 +156,12 @@ public class HtmCache content = loadFile(new File(Config.SCRIPT_ROOT, newPath)); } } - if (content == null) + + // In case localisation does not exist try the default path. + if ((content == null) && !prefix.contentEquals("")) { content = HTML_CACHE.get(path); + newPath = path; } if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS) diff --git a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/cache/HtmCache.java b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/cache/HtmCache.java index 944a93e77f..0a574bce00 100644 --- a/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/cache/HtmCache.java +++ b/L2J_Mobius_2.5_Underground/java/org/l2jmobius/gameserver/cache/HtmCache.java @@ -146,7 +146,7 @@ public class HtmCache public String getHtm(PlayerInstance player, String path) { final String prefix = player != null ? player.getHtmlPrefix() : ""; - final String newPath = prefix + path; + String newPath = prefix + path; String content = HTML_CACHE.get(newPath); if (Config.LAZY_CACHE && (content == null)) { @@ -156,9 +156,12 @@ public class HtmCache content = loadFile(new File(Config.SCRIPT_ROOT, newPath)); } } - if (content == null) + + // In case localisation does not exist try the default path. + if ((content == null) && !prefix.contentEquals("")) { content = HTML_CACHE.get(path); + newPath = path; } if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS) diff --git a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/cache/HtmCache.java b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/cache/HtmCache.java index 944a93e77f..0a574bce00 100644 --- a/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/cache/HtmCache.java +++ b/L2J_Mobius_3.0_Helios/java/org/l2jmobius/gameserver/cache/HtmCache.java @@ -146,7 +146,7 @@ public class HtmCache public String getHtm(PlayerInstance player, String path) { final String prefix = player != null ? player.getHtmlPrefix() : ""; - final String newPath = prefix + path; + String newPath = prefix + path; String content = HTML_CACHE.get(newPath); if (Config.LAZY_CACHE && (content == null)) { @@ -156,9 +156,12 @@ public class HtmCache content = loadFile(new File(Config.SCRIPT_ROOT, newPath)); } } - if (content == null) + + // In case localisation does not exist try the default path. + if ((content == null) && !prefix.contentEquals("")) { content = HTML_CACHE.get(path); + newPath = path; } if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS) diff --git a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/cache/HtmCache.java b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/cache/HtmCache.java index 944a93e77f..0a574bce00 100644 --- a/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/cache/HtmCache.java +++ b/L2J_Mobius_4.0_GrandCrusade/java/org/l2jmobius/gameserver/cache/HtmCache.java @@ -146,7 +146,7 @@ public class HtmCache public String getHtm(PlayerInstance player, String path) { final String prefix = player != null ? player.getHtmlPrefix() : ""; - final String newPath = prefix + path; + String newPath = prefix + path; String content = HTML_CACHE.get(newPath); if (Config.LAZY_CACHE && (content == null)) { @@ -156,9 +156,12 @@ public class HtmCache content = loadFile(new File(Config.SCRIPT_ROOT, newPath)); } } - if (content == null) + + // In case localisation does not exist try the default path. + if ((content == null) && !prefix.contentEquals("")) { content = HTML_CACHE.get(path); + newPath = path; } if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS) diff --git a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/cache/HtmCache.java b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/cache/HtmCache.java index 944a93e77f..0a574bce00 100644 --- a/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/cache/HtmCache.java +++ b/L2J_Mobius_5.0_Salvation/java/org/l2jmobius/gameserver/cache/HtmCache.java @@ -146,7 +146,7 @@ public class HtmCache public String getHtm(PlayerInstance player, String path) { final String prefix = player != null ? player.getHtmlPrefix() : ""; - final String newPath = prefix + path; + String newPath = prefix + path; String content = HTML_CACHE.get(newPath); if (Config.LAZY_CACHE && (content == null)) { @@ -156,9 +156,12 @@ public class HtmCache content = loadFile(new File(Config.SCRIPT_ROOT, newPath)); } } - if (content == null) + + // In case localisation does not exist try the default path. + if ((content == null) && !prefix.contentEquals("")) { content = HTML_CACHE.get(path); + newPath = path; } if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS) diff --git a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/cache/HtmCache.java b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/cache/HtmCache.java index 944a93e77f..0a574bce00 100644 --- a/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/cache/HtmCache.java +++ b/L2J_Mobius_5.5_EtinasFate/java/org/l2jmobius/gameserver/cache/HtmCache.java @@ -146,7 +146,7 @@ public class HtmCache public String getHtm(PlayerInstance player, String path) { final String prefix = player != null ? player.getHtmlPrefix() : ""; - final String newPath = prefix + path; + String newPath = prefix + path; String content = HTML_CACHE.get(newPath); if (Config.LAZY_CACHE && (content == null)) { @@ -156,9 +156,12 @@ public class HtmCache content = loadFile(new File(Config.SCRIPT_ROOT, newPath)); } } - if (content == null) + + // In case localisation does not exist try the default path. + if ((content == null) && !prefix.contentEquals("")) { content = HTML_CACHE.get(path); + newPath = path; } if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS) diff --git a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/cache/HtmCache.java b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/cache/HtmCache.java index 944a93e77f..0a574bce00 100644 --- a/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/cache/HtmCache.java +++ b/L2J_Mobius_6.0_Fafurion/java/org/l2jmobius/gameserver/cache/HtmCache.java @@ -146,7 +146,7 @@ public class HtmCache public String getHtm(PlayerInstance player, String path) { final String prefix = player != null ? player.getHtmlPrefix() : ""; - final String newPath = prefix + path; + String newPath = prefix + path; String content = HTML_CACHE.get(newPath); if (Config.LAZY_CACHE && (content == null)) { @@ -156,9 +156,12 @@ public class HtmCache content = loadFile(new File(Config.SCRIPT_ROOT, newPath)); } } - if (content == null) + + // In case localisation does not exist try the default path. + if ((content == null) && !prefix.contentEquals("")) { content = HTML_CACHE.get(path); + newPath = path; } if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS) diff --git a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/cache/HtmCache.java b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/cache/HtmCache.java index 8d2012facd..77b2d0626a 100644 --- a/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/cache/HtmCache.java +++ b/L2J_Mobius_CT_2.6_HighFive/java/org/l2jmobius/gameserver/cache/HtmCache.java @@ -146,7 +146,7 @@ public class HtmCache public String getHtm(PlayerInstance player, String path) { final String prefix = player != null ? player.getHtmlPrefix() : ""; - final String newPath = prefix + path; + String newPath = prefix + path; String content = HTML_CACHE.get(newPath); if (Config.LAZY_CACHE && (content == null)) { @@ -156,9 +156,12 @@ public class HtmCache content = loadFile(new File(Config.SCRIPT_ROOT, newPath)); } } - if (content == null) + + // In case localisation does not exist try the default path. + if ((content == null) && !prefix.contentEquals("")) { content = HTML_CACHE.get(path); + newPath = path; } if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS) diff --git a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/cache/HtmCache.java b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/cache/HtmCache.java index 944a93e77f..0a574bce00 100644 --- a/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/cache/HtmCache.java +++ b/L2J_Mobius_Classic_2.0_Saviors/java/org/l2jmobius/gameserver/cache/HtmCache.java @@ -146,7 +146,7 @@ public class HtmCache public String getHtm(PlayerInstance player, String path) { final String prefix = player != null ? player.getHtmlPrefix() : ""; - final String newPath = prefix + path; + String newPath = prefix + path; String content = HTML_CACHE.get(newPath); if (Config.LAZY_CACHE && (content == null)) { @@ -156,9 +156,12 @@ public class HtmCache content = loadFile(new File(Config.SCRIPT_ROOT, newPath)); } } - if (content == null) + + // In case localisation does not exist try the default path. + if ((content == null) && !prefix.contentEquals("")) { content = HTML_CACHE.get(path); + newPath = path; } if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS) diff --git a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/cache/HtmCache.java b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/cache/HtmCache.java index 944a93e77f..0a574bce00 100644 --- a/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/cache/HtmCache.java +++ b/L2J_Mobius_Classic_2.1_Zaken/java/org/l2jmobius/gameserver/cache/HtmCache.java @@ -146,7 +146,7 @@ public class HtmCache public String getHtm(PlayerInstance player, String path) { final String prefix = player != null ? player.getHtmlPrefix() : ""; - final String newPath = prefix + path; + String newPath = prefix + path; String content = HTML_CACHE.get(newPath); if (Config.LAZY_CACHE && (content == null)) { @@ -156,9 +156,12 @@ public class HtmCache content = loadFile(new File(Config.SCRIPT_ROOT, newPath)); } } - if (content == null) + + // In case localisation does not exist try the default path. + if ((content == null) && !prefix.contentEquals("")) { content = HTML_CACHE.get(path); + newPath = path; } if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS) diff --git a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/cache/HtmCache.java b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/cache/HtmCache.java index 944a93e77f..0a574bce00 100644 --- a/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/cache/HtmCache.java +++ b/L2J_Mobius_Classic_2.2_Antharas/java/org/l2jmobius/gameserver/cache/HtmCache.java @@ -146,7 +146,7 @@ public class HtmCache public String getHtm(PlayerInstance player, String path) { final String prefix = player != null ? player.getHtmlPrefix() : ""; - final String newPath = prefix + path; + String newPath = prefix + path; String content = HTML_CACHE.get(newPath); if (Config.LAZY_CACHE && (content == null)) { @@ -156,9 +156,12 @@ public class HtmCache content = loadFile(new File(Config.SCRIPT_ROOT, newPath)); } } - if (content == null) + + // In case localisation does not exist try the default path. + if ((content == null) && !prefix.contentEquals("")) { content = HTML_CACHE.get(path); + newPath = path; } if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS) diff --git a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/cache/HtmCache.java b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/cache/HtmCache.java index 944a93e77f..0a574bce00 100644 --- a/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/cache/HtmCache.java +++ b/L2J_Mobius_Classic_2.3_SevenSigns/java/org/l2jmobius/gameserver/cache/HtmCache.java @@ -146,7 +146,7 @@ public class HtmCache public String getHtm(PlayerInstance player, String path) { final String prefix = player != null ? player.getHtmlPrefix() : ""; - final String newPath = prefix + path; + String newPath = prefix + path; String content = HTML_CACHE.get(newPath); if (Config.LAZY_CACHE && (content == null)) { @@ -156,9 +156,12 @@ public class HtmCache content = loadFile(new File(Config.SCRIPT_ROOT, newPath)); } } - if (content == null) + + // In case localisation does not exist try the default path. + if ((content == null) && !prefix.contentEquals("")) { content = HTML_CACHE.get(path); + newPath = path; } if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS) diff --git a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/cache/HtmCache.java b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/cache/HtmCache.java index 944a93e77f..0a574bce00 100644 --- a/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/cache/HtmCache.java +++ b/L2J_Mobius_Classic_2.4_SecretOfEmpire/java/org/l2jmobius/gameserver/cache/HtmCache.java @@ -146,7 +146,7 @@ public class HtmCache public String getHtm(PlayerInstance player, String path) { final String prefix = player != null ? player.getHtmlPrefix() : ""; - final String newPath = prefix + path; + String newPath = prefix + path; String content = HTML_CACHE.get(newPath); if (Config.LAZY_CACHE && (content == null)) { @@ -156,9 +156,12 @@ public class HtmCache content = loadFile(new File(Config.SCRIPT_ROOT, newPath)); } } - if (content == null) + + // In case localisation does not exist try the default path. + if ((content == null) && !prefix.contentEquals("")) { content = HTML_CACHE.get(path); + newPath = path; } if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)