Browse Source

Minor - format code.

Julio Montoya 11 years ago
parent
commit
1c3a5964a1

+ 1 - 1
main/admin/calendar.php

@@ -205,7 +205,7 @@ if (api_is_allowed_to_edit(false,true)) {
 				if ($_POST['submit_event']) {
 			        $my_id_attach = (int)$_REQUEST['id_attach'];
 					$my_file_comment = Database::escape_string($_REQUEST['file_comment']);
-					store_edited_agenda_item($my_id_attach,$my_file_comment);
+					store_edited_agenda_item($my_id_attach, $my_file_comment);
 					display_agenda_items();
 				} else {
 					$id=(int)$_GET['id'];

+ 5 - 5
main/exercice/exercise_result.php

@@ -68,12 +68,12 @@ if (empty($objExercise)) {
         if ($exercise_stat_info['status'] == 'incomplete') {
             $objExercise->read($exercise_stat_info['exe_exo_id']);
         } else {
-        header("Location: overview.php?exerciseId=".$exercise_stat_info['exe_exo_id']);
-        exit;
-    }
+            header("Location: overview.php?exerciseId=".$exercise_stat_info['exe_exo_id']);
+            exit;
+        }
     } else {
-    api_not_allowed(true);
-}
+        api_not_allowed(true);
+    }
 }
 
 $gradebook = '';

+ 2 - 2
main/exercice/exercise_show.php

@@ -26,7 +26,7 @@ require_once 'answer.class.php';
 require_once '../inc/global.inc.php';
 $urlMainExercise = api_get_path(WEB_CODE_PATH).'exercice/';
 
-if (empty($origin) ) {
+if (empty($origin)) {
     $origin = isset($_REQUEST['origin']) ? $_REQUEST['origin'] : null;
 }
 
@@ -176,7 +176,7 @@ $(function() {
                 $('#result_from_ajax').html('<?php echo addslashes(Display::return_message(get_lang('Saved'), 'success'))?>');
                 $('.question_row').hide();
                 $('#myform').hide();
-                $('#correct_again').hide();            
+                $('#correct_again').hide();
                 }
             }
         });

+ 0 - 1
main/social/myfiles.php

@@ -9,7 +9,6 @@
  */
 $language_file = array('messages','userInfo');
 $cidReset=true;
-require_once '../inc/global.inc.php';
 
 api_block_anonymous_users();
 

+ 2 - 2
main/template/default/admin/administrator/role_index.tpl

@@ -1,5 +1,5 @@
 {% for block_item in blocks %}
-    <div id="tabs-{{ loop.index }}" class="span6">
+    <div id="tabs-{{ loop.index }}" class="col-md-6">
         <div class="well_border {{ block_item.class }}">
             <h4>{{ block_item.icon }} {{ block_item.label }}</h4>
             <div style="list-style-type:none">
@@ -26,7 +26,7 @@
     </div>
 {% endfor %}
 
-<div class="span6">
+<div class="col-md-6">
     <div class="well_border">
         <ul>
             <li>

+ 1 - 1
main/template/default/admin/index.tpl

@@ -30,7 +30,7 @@
         });
         </script>
         <div class="row">
-            <div class="span12">
+            <div class="col-md-12">
                 <div class="well_border">
                 <h3>{{ 'VersionCheck' | trans }} </h3>
                 <div class="admin-block-version"></div>

+ 1 - 1
main/template/default/admin/questionmanager/role_index.tpl

@@ -1,4 +1,4 @@
-<div class="span6">
+<div class="col-md-6">
     <div class="well_border">
         <h4>{{ 'Questions'  | get_lang }}</h4>
         <ul>