mirror of
https://github.com/MistWeatherMedia/i2ME.git
synced 2026-11-28 14:20:00 -08:00
Replace zone id with county id when placeholder is being used. Fixes #2.
This commit is contained in:
1 parent
7381550335
commit
387473df7d
1 file changed
+8
-1
@@ -86,7 +86,14 @@ public class Base
|
||||
|
||||
if (url.Contains("{zone}"))
|
||||
{
|
||||
url = url.Replace("{zone}", location.zoneId);
|
||||
if (location.zoneId == "ZZZ999" || string.IsNullOrEmpty(location.zoneId))
|
||||
{
|
||||
url = url.Replace("{zone}", location.cntyId);
|
||||
}
|
||||
else
|
||||
{
|
||||
url = url.Replace("{zone}", location.zoneId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user