浏览代码

Install: Minor style change

Julio Montoya 13 年之前
父节点
当前提交
7858249e5c
共有 1 个文件被更改,包括 8 次插入5 次删除
  1. 8 5
      main/install/install.lib.php

+ 8 - 5
main/install/install.lib.php

@@ -1244,7 +1244,7 @@ function display_requirements($installType, $badUpdatePath, $updatePath = '', $u
 
     if ($installType == 'update' && (empty($updatePath) || $badUpdatePath)) {
         if ($badUpdatePath) { ?>
-            <div style="color:red; background-color:white; font-weight:bold; text-align:center;">
+            <div class="error-message">
                 <?php echo get_lang('Error'); ?>!<br />
                 Chamilo <?php echo (isset($_POST['step2_update_6']) ? implode('|', $update_from_version_6) : implode('|', $update_from_version_8)).' '.get_lang('HasNotBeenFoundInThatDir'); ?>.
             </div>
@@ -1326,15 +1326,18 @@ function display_requirements($installType, $badUpdatePath, $updatePath = '', $u
         //--> The user would have to adjust the permissions manually
         if (count($notwritable) > 0) {
             $error = true;
-            echo '<div style="color:red; background-color:white; font-weight:bold; text-align:center;">';
-            echo get_lang('Warning').':<br />';
-            printf(get_lang('NoWritePermissionPleaseReadInstallGuide'), '</font><a href="../../documentation/installation_guide.html" target="blank">', '</a> <font color="red">');
+            echo '<div class="error-message">';
+	            echo '<center><h3>'.get_lang('Warning').'</h3></center>';
+	            printf(get_lang('NoWritePermissionPleaseReadInstallGuide'), '</font>
+	            <a href="../../documentation/installation_guide.html" target="blank">', '</a> <font color="red">');
+			echo '</div>';
+				
             echo '<ul>';
             foreach ($notwritable as $value) {
                 echo '<li>'.$value.'</li>';
             }
             echo '</ul>';
-            echo '</div>';
+            
         }
 
         // Check wether a Chamilo configuration file already exists.