English htmls are considered to use the default path.
This commit is contained in:
@@ -156,6 +156,10 @@ public class HtmCache
|
|||||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (content == null)
|
||||||
|
{
|
||||||
|
content = HTML_CACHE.get(path);
|
||||||
|
}
|
||||||
|
|
||||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -12804,7 +12804,7 @@ public final class PlayerInstance extends Playable
|
|||||||
_lang = Config.MULTILANG_DEFAULT;
|
_lang = Config.MULTILANG_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -156,6 +156,10 @@ public class HtmCache
|
|||||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (content == null)
|
||||||
|
{
|
||||||
|
content = HTML_CACHE.get(path);
|
||||||
|
}
|
||||||
|
|
||||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -12811,7 +12811,7 @@ public final class PlayerInstance extends Playable
|
|||||||
_lang = Config.MULTILANG_DEFAULT;
|
_lang = Config.MULTILANG_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -156,6 +156,10 @@ public class HtmCache
|
|||||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (content == null)
|
||||||
|
{
|
||||||
|
content = HTML_CACHE.get(path);
|
||||||
|
}
|
||||||
|
|
||||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -12813,7 +12813,7 @@ public final class PlayerInstance extends Playable
|
|||||||
_lang = Config.MULTILANG_DEFAULT;
|
_lang = Config.MULTILANG_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -156,6 +156,10 @@ public class HtmCache
|
|||||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (content == null)
|
||||||
|
{
|
||||||
|
content = HTML_CACHE.get(path);
|
||||||
|
}
|
||||||
|
|
||||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -12792,7 +12792,7 @@ public final class PlayerInstance extends Playable
|
|||||||
_lang = Config.MULTILANG_DEFAULT;
|
_lang = Config.MULTILANG_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -156,6 +156,10 @@ public class HtmCache
|
|||||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (content == null)
|
||||||
|
{
|
||||||
|
content = HTML_CACHE.get(path);
|
||||||
|
}
|
||||||
|
|
||||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -12782,7 +12782,7 @@ public final class PlayerInstance extends Playable
|
|||||||
_lang = Config.MULTILANG_DEFAULT;
|
_lang = Config.MULTILANG_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -156,6 +156,10 @@ public class HtmCache
|
|||||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (content == null)
|
||||||
|
{
|
||||||
|
content = HTML_CACHE.get(path);
|
||||||
|
}
|
||||||
|
|
||||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -12788,7 +12788,7 @@ public final class PlayerInstance extends Playable
|
|||||||
_lang = Config.MULTILANG_DEFAULT;
|
_lang = Config.MULTILANG_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -156,6 +156,10 @@ public class HtmCache
|
|||||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (content == null)
|
||||||
|
{
|
||||||
|
content = HTML_CACHE.get(path);
|
||||||
|
}
|
||||||
|
|
||||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -12794,7 +12794,7 @@ public final class PlayerInstance extends Playable
|
|||||||
_lang = Config.MULTILANG_DEFAULT;
|
_lang = Config.MULTILANG_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -156,6 +156,10 @@ public class HtmCache
|
|||||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (content == null)
|
||||||
|
{
|
||||||
|
content = HTML_CACHE.get(path);
|
||||||
|
}
|
||||||
|
|
||||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -13736,7 +13736,7 @@ public final class PlayerInstance extends Playable
|
|||||||
_lang = Config.MULTILANG_DEFAULT;
|
_lang = Config.MULTILANG_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
+4
@@ -156,6 +156,10 @@ public class HtmCache
|
|||||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (content == null)
|
||||||
|
{
|
||||||
|
content = HTML_CACHE.get(path);
|
||||||
|
}
|
||||||
|
|
||||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -12646,7 +12646,7 @@ public final class PlayerInstance extends Playable
|
|||||||
_lang = Config.MULTILANG_DEFAULT;
|
_lang = Config.MULTILANG_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
+4
@@ -156,6 +156,10 @@ public class HtmCache
|
|||||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (content == null)
|
||||||
|
{
|
||||||
|
content = HTML_CACHE.get(path);
|
||||||
|
}
|
||||||
|
|
||||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -12653,7 +12653,7 @@ public final class PlayerInstance extends Playable
|
|||||||
_lang = Config.MULTILANG_DEFAULT;
|
_lang = Config.MULTILANG_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
+4
@@ -156,6 +156,10 @@ public class HtmCache
|
|||||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (content == null)
|
||||||
|
{
|
||||||
|
content = HTML_CACHE.get(path);
|
||||||
|
}
|
||||||
|
|
||||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -12638,7 +12638,7 @@ public final class PlayerInstance extends Playable
|
|||||||
_lang = Config.MULTILANG_DEFAULT;
|
_lang = Config.MULTILANG_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
+4
@@ -156,6 +156,10 @@ public class HtmCache
|
|||||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (content == null)
|
||||||
|
{
|
||||||
|
content = HTML_CACHE.get(path);
|
||||||
|
}
|
||||||
|
|
||||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -12644,7 +12644,7 @@ public final class PlayerInstance extends Playable
|
|||||||
_lang = Config.MULTILANG_DEFAULT;
|
_lang = Config.MULTILANG_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
+4
@@ -156,6 +156,10 @@ public class HtmCache
|
|||||||
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
content = loadFile(new File(Config.SCRIPT_ROOT, newPath));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (content == null)
|
||||||
|
{
|
||||||
|
content = HTML_CACHE.get(path);
|
||||||
|
}
|
||||||
|
|
||||||
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
if ((player != null) && player.isGM() && Config.GM_DEBUG_HTML_PATHS)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -12644,7 +12644,7 @@ public final class PlayerInstance extends Playable
|
|||||||
_lang = Config.MULTILANG_DEFAULT;
|
_lang = Config.MULTILANG_DEFAULT;
|
||||||
}
|
}
|
||||||
|
|
||||||
_htmlPrefix = "data/lang/" + _lang + "/";
|
_htmlPrefix = _lang.equals("en") ? "" : "data/lang/" + _lang + "/";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user