Browse Source

Fixing bad message in check_system_version function -refs #6216

Yoselyn Castillo 11 years ago
parent
commit
6299603c7c
2 changed files with 7 additions and 1 deletions
  1. 1 1
      main/admin/index.php
  2. 6 0
      main/template/default/admin/settings_index.tpl

+ 1 - 1
main/admin/index.php

@@ -399,7 +399,7 @@ function check_system_version() {
 
         $res = _http_request('version.chamilo.org', 80, '/version.php', $data);
 
-        if ($res !== false) {
+        if ($res != 0) {
             $version_info = $res;
 
             if ($system_version != $version_info) {

+ 6 - 0
main/template/default/admin/settings_index.tpl

@@ -20,6 +20,9 @@ $(function() {
     <div class="row">
     {% for block_item in blocks %}
         <div id="tabs-{{loop.index}}" class="span6">
+        {% if block_item.label == 'VersionCheck'|get_lang %}
+               <div id="tabs-{{loop.index}}" class="admin-block-version">  
+        {% endif %}  
             <div class="well_border">
                 <h4>{{block_item.icon}} {{block_item.label}}</h4>                
                 <div style="list-style-type:none">
@@ -39,6 +42,9 @@ $(function() {
                     </div>
                 {% endif %}                
             </div>
+        {% if block_item.label == 'VersionCheck'|get_lang %}
+               </div>  
+        {% endif %}
         </div>        
     {% endfor %}
     </div>