diff --git a/admin/Masmak/admin_check_update.html b/admin/Masmak/admin_check_update.html
index 66580ed..6634806 100755
--- a/admin/Masmak/admin_check_update.html
+++ b/admin/Masmak/admin_check_update.html
@@ -14,8 +14,8 @@
setTimeout(function(){
$.ajax({
url: './?cp=p_check_update&smt=check&_ajax_=1',
- dataType: 'json',
- success: function (data) {
+ dataType: 'json'})
+ .done(function (data) {
if(data.content){
var info = data.content.split(":::");
$('#updateInfo').html(info[1]).addClass(info[0] == 1 ? 'alert-warning' : 'alert-info');
@@ -23,11 +23,10 @@
this.fail();
}
location.href = './?update_done=1';
- },
- fail: function() {
+ })
+ .fail(function() {
$('#updateInfo').html('{lang.ERROR_CHECK_VER}').addClass('alert-warning');
location.href = './?update_done=1';
- }
});
}, 300);
diff --git a/includes/adm/p_check_update.php b/includes/adm/p_check_update.php
index e6f7e62..9dee2a3 100755
--- a/includes/adm/p_check_update.php
+++ b/includes/adm/p_check_update.php
@@ -55,6 +55,10 @@ if($current_smt == 'check'):
{
$text = $lang['U_USE_PRE_RE'];
}
+ else
+ {
+ $text = $lang['ERROR_CHECK_VER'] . ' [code: ' . htmlspecialchars($version_data) .']';
+ }
}
$data = array(