fix cnc mod script the same way

This commit is contained in:
Chris Forbes
2010-12-24 14:13:12 +13:00
parent 51d3743b18
commit 3ce055da80

View File

@@ -129,7 +129,7 @@
var version = window.external.metadata("VERSION", "cnc");
document.getElementById("installedversion").innerHTML = version;
document.getElementById("latestversion").innerHTML = window.external.httpRequest("http://master.open-ra.org/VERSION");
motd = window.external.httpRequest("http://master.open-ra.org/motd.php?v="+version);
var motd = window.external.httpRequest("http://master.open-ra.org/motd.php?v="+version);
if (motd != undefined)
document.getElementById("motd").innerHTML = motd.substring(3);
}