1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-31 02:10:37 +02:00

SystemPlugin: fixes

This commit is contained in:
Awilum
2012-10-25 19:15:57 +03:00
parent 283ca65789
commit a3a02149b8

View File

@@ -14,8 +14,9 @@
<script type="text/javascript">
$.getJSON("http://monstra.org/api/version.php?jsoncallback=?",
function(data){
var current_monstra_version = '.Core::VERSION.';
var current_monstra_version = "'.Core::VERSION.'";
var stable_monstra_version = data.version;
console.log(data.version);
if (current_monstra_version < stable_monstra_version) {
$("#update-monstra").addClass("alert").html("'.__("Published a new version of the :monstra", "system", array(":monstra" => "<a target='_blank' href='http://monstra.org/download'>Monstra</a>")).'");
}