MDL-20700 whitespace terror returns
authorPetr Skoda <skodak@moodle.org>
Wed, 16 Dec 2009 22:14:17 +0000 (22:14 +0000)
committerPetr Skoda <skodak@moodle.org>
Wed, 16 Dec 2009 22:14:17 +0000 (22:14 +0000)
55 files changed:
auth/cas/auth.php
auth/ldap/auth.php
blocks/section_links/config_instance.html
blocks/section_links/settings.php
calendar/calendar.js
calendar/view.php
course/completion.js
course/format/topics/format.php
course/format/weeks/format.php
enrol/authorize/enrol_form.php
enrol/authorize/uploadcsv.php
enrol/flatfile/enrol.php
enrol/imsenterprise/enrol.php
enrol/manual/enrol.php
enrol/paypal/ipn.php
group/autogroup.php
group/autogroup_form.php
group/lib.php
lang/en_utf8/help/grade/index.html
lib/form/datetimeselector.php
lib/simpletest/testcompletionlib.php
lib/simpletest/testrss.php
lib/simpletest/testsimpletestlib.php
lib/simpletestlib.php
mod/assignment/lib.php
mod/assignment/type/upload/assignment.class.php
mod/forum/mod_form.php
mod/hotpot/mod_form.js
mod/quiz/accessrules.php
mod/scorm/aicc.php
mod/scorm/datamodels/scorm_13.js.php
mod/scorm/locallib.php
portfolio/googledocs/lib.php
portfolio/picasa/lib.php
question/editlib.php
question/format/blackboard/format.php
question/type/calculated/datasetdefinitions_form.php
question/type/calculated/datasetitems_form.php
question/type/calculated/questiontype.php
question/type/calculatedsimple/questiontype.php
question/type/essay/edit_essay_form.php
question/type/numerical/display.html
repository/alfresco/repository.class.php
repository/flickr_public/image.php
repository/merlot/repository.class.php
repository/repository.src.js
repository/youtube/repository.class.php
tag/index.php
theme/anomaly/README.html
theme/anomaly/header.html
theme/colors/colors.css
theme/formal_white/fw_layout.css
theme/lines/header.html
theme/lines/lines.css
theme/oceanblue/styles_color.css

index 703cebd..b30b32f 100644 (file)
@@ -63,7 +63,7 @@ class auth_plugin_cas extends auth_plugin_base {
      * @return bool Authentication success or failure.
      */
     function user_login ($username, $password) {
-               $this->connectCAS();
+        $this->connectCAS();
         return phpCAS::isAuthenticated() && (trim(moodle_strtolower(phpCAS::getUser())) == $username);
     }
     /**
@@ -91,43 +91,43 @@ class auth_plugin_cas extends auth_plugin_base {
     function loginpage_hook() {
       global $frm;
       global $CFG;
-         global $SESSION, $OUTPUT;
+      global $SESSION, $OUTPUT;
 
       $site = get_site();
       $CASform = get_string("CASform","auth_cas");
       $username = optional_param("username", '', PARAM_RAW);
 
       if (!empty($username)) {
-                 if (strstr($SESSION->wantsurl,'ticket') || strstr($SESSION->wantsurl,'NOCAS'))
-                         unset($SESSION->wantsurl);
-          return;              
+          if (strstr($SESSION->wantsurl,'ticket') || strstr($SESSION->wantsurl,'NOCAS'))
+              unset($SESSION->wantsurl);
+          return;
         }
 
 
-               
-               // Test si cas activ� et param�tres non remplis
-         if (empty($this->config->hostname)) {
-                 return;
-                 }
+
+        // Test si cas activ� et param�tres non remplis
+      if (empty($this->config->hostname)) {
+          return;
+          }
 
 // Connection to CAS server
-        $this->connectCAS();
-
-         // Gestion de la connection CAS si acc�s direct d'un ent ou autre   
-        if (phpCAS::checkAuthentication()) {
-               $frm->username=phpCAS::getUser();
-//             if (phpCAS::getUser()=='esup9992')
-//                     $frm->username='erhar0062';
-               $frm->password="passwdCas";             
-               return;
-        }              
-
-         if ($_GET["loginguest"]== true) {
-                       $frm->username="guest";
-                       $frm->password="guest";
-                       return;
-         }             
-       
+     $this->connectCAS();
+
+      // Gestion de la connection CAS si acc�s direct d'un ent ou autre
+     if (phpCAS::checkAuthentication()) {
+        $frm->username=phpCAS::getUser();
+//        if (phpCAS::getUser()=='esup9992')
+//            $frm->username='erhar0062';
+        $frm->password="passwdCas";
+        return;
+     }
+
+      if ($_GET["loginguest"]== true) {
+            $frm->username="guest";
+            $frm->password="guest";
+            return;
+      }
+
      if ($this->config->multiauth) {
           $authCAS = optional_param("authCAS", '', PARAM_RAW);
           if ($authCAS=="NOCAS")
@@ -144,7 +144,7 @@ class auth_plugin_cas extends auth_plugin_base {
             include($CFG->dirroot."/auth/cas/cas_form.html");
             echo $OUTPUT->footer();
             exit();
-                }
+         }
      }
 // CAS authentication
      if (!phpCAS::isAuthenticated())
@@ -158,11 +158,11 @@ class auth_plugin_cas extends auth_plugin_base {
      */
     function prelogout_hook() {
         global $CFG;
-         if ($this->config->logoutcas ) {
-               $backurl = $CFG->wwwroot;
-                 $this->connectCAS();
-               phpCAS::logout($backurl);
-            }
+      if ($this->config->logoutcas ) {
+            $backurl = $CFG->wwwroot;
+          $this->connectCAS();
+            phpCAS::logout($backurl);
+         }
     }
     /**
      * Connect to the cas (clientcas connection or proxycas connection
@@ -171,20 +171,20 @@ class auth_plugin_cas extends auth_plugin_base {
      *
      */
     function connectCAS() {
-       
-       global $PHPCAS_CLIENT;
+
+    global $PHPCAS_CLIENT;
 // mode proxy CAS
 if ( !is_object($PHPCAS_CLIENT) ) {
-       if  ($this->config->proxycas) {
-           phpCAS::proxy($this->config->casversion, $this-> config->hostname, (int) $this->config->port, $this->config->baseuri);
-       }
+    if  ($this->config->proxycas) {
+        phpCAS::proxy($this->config->casversion, $this-> config->hostname, (int) $this->config->port, $this->config->baseuri);
+    }
 // mode client CAS
-       else {
-           phpCAS::client($this->config->casversion, $this-> config->hostname, (int) $this->config->port, $this->config->baseuri);
-       }
+    else {
+        phpCAS::client($this->config->casversion, $this-> config->hostname, (int) $this->config->port, $this->config->baseuri);
+    }
+    }
+
     }
-       
-       }
     /**
      * Prints a form for configuring this authentication plugin.
      *
@@ -974,16 +974,16 @@ if (!empty($this->config->attrcreators)) {
     $filter = "(& (".$this->config->user_attribute."=$username)(|";
     foreach ($attrs as $attr){
         if(strpos($attr, "="))
-               $filter .= "($attr)";
+            $filter .= "($attr)";
         else
-               $filter .= "(".$this->config->memberattribute."=$attr)";
+            $filter .= "(".$this->config->memberattribute."=$attr)";
     }
     $filter .= "))";
     //search
     $result = $this->ldap_get_userlist($filter);
     if (count($result)!=0)
-       return true;
-       }
+        return true;
+     }
 
     return false;
     }
@@ -1089,7 +1089,7 @@ if (!empty($this->config->attrcreators)) {
         do {
             $attributes = @ldap_get_attributes($conn, $entry);
             for ($j=0; $j<$attributes['count']; $j++) {
-                $values = ldap_get_values_len($conn, $entry,$attributes[$j]);                          
+                $values = ldap_get_values_len($conn, $entry,$attributes[$j]);
 
                 if (is_array($values)) {
                 $fresult[$i][strtolower($attributes[$j])] = $values;
index 9162ab6..2de694c 100644 (file)
@@ -1567,8 +1567,8 @@ class auth_plugin_ldap extends auth_plugin_base {
             }
 
             if ($bindresult) {
-               // Set the connection counter so we can call PHP's ldap_close()
-               // when we call $this->ldap_close() for the last 'open' connection.
+        // Set the connection counter so we can call PHP's ldap_close()
+        // when we call $this->ldap_close() for the last 'open' connection.
                 $this->ldapconns = 1;
                 $this->ldapconnection = $connresult;
                 return $connresult;
index 069e22e..38c4473 100755 (executable)
@@ -1,19 +1,19 @@
 <?php
 $numberofsections = array();
 for ($i = 1; $i < 53; $i++){
-       $numberofsections[$i] = $i;
+    $numberofsections[$i] = $i;
 }
 
 $increments = array();
 
 for ($i = 1; $i < 11; $i++){
-       $increments[$i] = $i;
+    $increments[$i] = $i;
 }
 
 if(isset($this->config)){
-       $config = $this->config;
+    $config = $this->config;
 } else{
-       $config = get_config('blocks/section_links');
+    $config = get_config('blocks/section_links');
 }
 
 $selected = array();
@@ -40,28 +40,28 @@ if (!empty($config->numsections2)) {
 <?php
 for($i = 1; $i < 3; $i++){
 ?>
-       <tr valign="top">
-           <td align="right">
-               <?php print_string('numsections'.$i, 'block_section_links'); ?>:
-           </td>
-           <td>
-               <?php choose_from_menu($numberofsections, 'numsections'.$i, $selected[$i][0]); ?>
-           </td>
-           <td>
-               <?php print_string('numsectionsdesc'.$i, 'block_section_links'); ?>
-           </td>
-       </tr>
-       <tr valign="top">
-           <td align="right">
-               <?php print_string('incby'.$i, 'block_section_links'); ?>:
-           </td>
-           <td>
-               <?php choose_from_menu($increments, 'incby'.$i, $selected[$i][1]); ?>
-           </td>
-           <td>
-               <?php print_string('incbydesc'.$i, 'block_section_links'); ?>
-           </td>
-       </tr>   
+    <tr valign="top">
+        <td align="right">
+            <?php print_string('numsections'.$i, 'block_section_links'); ?>:
+        </td>
+        <td>
+            <?php choose_from_menu($numberofsections, 'numsections'.$i, $selected[$i][0]); ?>
+        </td>
+        <td>
+            <?php print_string('numsectionsdesc'.$i, 'block_section_links'); ?>
+        </td>
+    </tr>
+    <tr valign="top">
+        <td align="right">
+            <?php print_string('incby'.$i, 'block_section_links'); ?>:
+        </td>
+        <td>
+            <?php choose_from_menu($increments, 'incby'.$i, $selected[$i][1]); ?>
+        </td>
+        <td>
+            <?php print_string('incbydesc'.$i, 'block_section_links'); ?>
+        </td>
+    </tr>
 <?php }
 ?>
 <tr>
index 9b0d1da..bad7638 100755 (executable)
@@ -4,12 +4,12 @@ $configs = array();
 $numberofsections = array();
 
 for ($i = 1; $i < 53; $i++){
-       $numberofsections[$i] = $i;
+    $numberofsections[$i] = $i;
 }
 $increments = array();
 
 for ($i = 1; $i < 11; $i++){
-       $increments[$i] = $i;
+    $increments[$i] = $i;
 }
 
 $selected = array(1 => array(22,2), 
index da53a82..bcc7979 100644 (file)
@@ -15,7 +15,7 @@ YAHOO.moodle.container.calendarpanels = [];
  * has been resolved.
  */
 YAHOO.util.Event.onDOMReady(function () {
-       //TODO: remove this hack MDL-20204
+    //TODO: remove this hack MDL-20204
     var animationlib = document.createElement('script');
     animationlib.setAttribute('type','text/javascript');
     animationlib.setAttribute('src',moodle_cfg.wwwroot+'/lib/yui/2.8.0r4/animation/animation-min.js');
index 2cfbb9d..b348425 100644 (file)
@@ -539,55 +539,55 @@ function calendar_show_month_detailed($m, $y, $courses, $groups, $users, $course
 
     echo "</table>\n"; // Tabular display of days ends
 
-       // OK, now for the filtering display    
-            echo '<div class="filters"><table><tr>';   
-               
-            // Global events   
-            if($SESSION->cal_show_global) {    
-                echo '<td class="event_global" style="width: 8px;"></td><td><strong>'.get_string('globalevents', 'calendar').':</strong> ';    
-                echo get_string('shown', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showglobal&amp;'.$getvars.'">'.get_string('clickhide', 'calendar').'</a>)</td>'."\n";     
-            }  
-            else {     
-                echo '<td style="width: 8px;"></td><td><strong>'.get_string('globalevents', 'calendar').':</strong> ';         
-                echo get_string('hidden', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showglobal&amp;'.$getvars.'">'.get_string('clickshow', 'calendar').'</a>)</td>'."\n";    
-            }  
-               
-            // Course events   
-            if(!empty($SESSION->cal_show_course)) {    
-                echo '<td class="event_course" style="width: 8px;"></td><td><strong>'.get_string('courseevents', 'calendar').':</strong> ';    
-                echo get_string('shown', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showcourses&amp;'.$getvars.'">'.get_string('clickhide', 'calendar').'</a>)</td>'."\n";    
-            }  
-            else {     
-                echo '<td style="width: 8px;"></td><td><strong>'.get_string('courseevents', 'calendar').':</strong> ';         
-                echo get_string('hidden', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showcourses&amp;'.$getvars.'">'.get_string('clickshow', 'calendar').'</a>)</td>'."\n";   
-            }  
-               
-            echo "</tr>\n";    
-               
-            if(!empty($USER->id) && !has_capability('moodle/legacy:guest', get_context_instance(CONTEXT_SYSTEM), 0, false)) {
-                echo '<tr>';   
-                // Group events        
-                if($SESSION->cal_show_groups) {        
-                    echo '<td class="event_group" style="width: 8px;"></td><td><strong>'.get_string('groupevents', 'calendar').':</strong> ';  
-                    echo get_string('shown', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showgroups&amp;'.$getvars.'">'.get_string('clickhide', 'calendar').'</a>)</td>'."\n";         
-                }      
-                else {         
-                    echo '<td style="width: 8px;"></td><td><strong>'.get_string('groupevents', 'calendar').':</strong> ';      
-                    echo get_string('hidden', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showgroups&amp;'.$getvars.'">'.get_string('clickshow', 'calendar').'</a>)</td>'."\n";        
-                }      
-                // User events         
-                if($SESSION->cal_show_user) {  
-                    echo '<td class="event_user" style="width: 8px;"></td><td><strong>'.get_string('userevents', 'calendar').':</strong> ';    
-                    echo get_string('shown', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showuser&amp;'.$getvars.'">'.get_string('clickhide', 'calendar').'</a>)</td>'."\n";   
-                }      
-                else {         
-                    echo '<td style="width: 8px;"></td><td><strong>'.get_string('userevents', 'calendar').':</strong> ';       
-                    echo get_string('hidden', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showuser&amp;'.$getvars.'">'.get_string('clickshow', 'calendar').'</a>)</td>'."\n";  
-                }      
-                echo "</tr>\n";        
-            }  
-               
-            echo '</table></div>';
+    // OK, now for the filtering display
+         echo '<div class="filters"><table><tr>';
+
+         // Global events
+         if($SESSION->cal_show_global) {
+             echo '<td class="event_global" style="width: 8px;"></td><td><strong>'.get_string('globalevents', 'calendar').':</strong> ';
+             echo get_string('shown', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showglobal&amp;'.$getvars.'">'.get_string('clickhide', 'calendar').'</a>)</td>'."\n";
+         }
+         else {
+             echo '<td style="width: 8px;"></td><td><strong>'.get_string('globalevents', 'calendar').':</strong> ';
+             echo get_string('hidden', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showglobal&amp;'.$getvars.'">'.get_string('clickshow', 'calendar').'</a>)</td>'."\n";
+         }
+
+         // Course events
+         if(!empty($SESSION->cal_show_course)) {
+             echo '<td class="event_course" style="width: 8px;"></td><td><strong>'.get_string('courseevents', 'calendar').':</strong> ';
+             echo get_string('shown', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showcourses&amp;'.$getvars.'">'.get_string('clickhide', 'calendar').'</a>)</td>'."\n";
+         }
+         else {
+             echo '<td style="width: 8px;"></td><td><strong>'.get_string('courseevents', 'calendar').':</strong> ';
+             echo get_string('hidden', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showcourses&amp;'.$getvars.'">'.get_string('clickshow', 'calendar').'</a>)</td>'."\n";
+         }
+
+         echo "</tr>\n";
+
+         if(!empty($USER->id) && !has_capability('moodle/legacy:guest', get_context_instance(CONTEXT_SYSTEM), 0, false)) {
+             echo '<tr>';
+             // Group events
+             if($SESSION->cal_show_groups) {
+                 echo '<td class="event_group" style="width: 8px;"></td><td><strong>'.get_string('groupevents', 'calendar').':</strong> ';
+                 echo get_string('shown', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showgroups&amp;'.$getvars.'">'.get_string('clickhide', 'calendar').'</a>)</td>'."\n";
+             }
+             else {
+                 echo '<td style="width: 8px;"></td><td><strong>'.get_string('groupevents', 'calendar').':</strong> ';
+                 echo get_string('hidden', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showgroups&amp;'.$getvars.'">'.get_string('clickshow', 'calendar').'</a>)</td>'."\n";
+             }
+             // User events
+             if($SESSION->cal_show_user) {
+                 echo '<td class="event_user" style="width: 8px;"></td><td><strong>'.get_string('userevents', 'calendar').':</strong> ';
+                 echo get_string('shown', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showuser&amp;'.$getvars.'">'.get_string('clickhide', 'calendar').'</a>)</td>'."\n";
+             }
+             else {
+                 echo '<td style="width: 8px;"></td><td><strong>'.get_string('userevents', 'calendar').':</strong> ';
+                 echo get_string('hidden', 'calendar').' (<a href="'.CALENDAR_URL.'set.php?var=showuser&amp;'.$getvars.'">'.get_string('clickshow', 'calendar').'</a>)</td>'."\n";
+             }
+             echo "</tr>\n";
+         }
+
+         echo '</table></div>';
 }
 
 function calendar_show_upcoming_events($courses, $groups, $users, $futuredays, $maxevents, $courseid) {
index 3c7dd03..5e9f186 100644 (file)
@@ -95,12 +95,12 @@ function completion_toggle(e) {
 function completion_set_progressicon_visibility(spanid,displaystatus) {
     // Check if the progress icon exists
     if (document.getElementById(spanid)!= null) {
-        if (displaystatus=='show') {   
+        if (displaystatus=='show') {
             document.getElementById(spanid).style.display="block";
         }
         else if (displaystatus=='hide') {
             document.getElementById(spanid).style.display="none";
-               
+
         }
         else {
             alert ("An error occurred when calling completion_set_progressicon_visibility() function.");
index 90e1ec7..bbf6425 100644 (file)
@@ -182,7 +182,7 @@ while ($section <= $course->numsections) {
         // Note, 'right side' is BEFORE content.
         echo '<div class="right side">';
 
-        if ($displaysection == $section) {     // Show the zoom boxes
+        if ($displaysection == $section) {    // Show the zoom boxes
             echo '<a href="view.php?id='.$course->id.'&amp;topic=0#section-'.$section.'" title="'.$strshowalltopics.'">'.
                  '<img src="'.$OUTPUT->pix_url('i/all') . '" class="icon" alt="'.$strshowalltopics.'" /></a><br />';
         } else {
index 069fe9a..9d2e84a 100644 (file)
 
             echo '<li id="section-'.$section.'" class="section main'.$sectionstyle.'" >';
 
-           echo '<div class="left side">&nbsp;'.$currenttext.'</div>';
+            echo '<div class="left side">&nbsp;'.$currenttext.'</div>';
 
             // Note, 'right side' is BEFORE content.
             echo '<div class="right side">';
index 60567f4..92b7f3d 100755 (executable)
@@ -60,7 +60,7 @@ class enrol_authorize_form extends moodleform
             $endyear = $startyear + 20;
             $yearsmenu = array('' => get_string('choose'));
             for ($i = $startyear; $i < $endyear; $i++) {
-               $yearsmenu[$i] = $i;
+                $yearsmenu[$i] = $i;
             }
             $ccexpiregrp = array();
             $ccexpiregrp[] = &$mform->createElement('select', 'ccexpiremm', '', $monthsmenu);
index b2a5094..417f463 100644 (file)
@@ -240,7 +240,7 @@ function authorize_process_csv($filename)
         $eventdata->fullmessage       = $ignoredlines;
         $eventdata->fullmessageformat = FORMAT_PLAIN;
         $eventdata->fullmessagehtml   = '';
-        $eventdata->smallmessage      = '';                    
+        $eventdata->smallmessage      = '';
         message_send($eventdata);
     }
 
index e074621..b917742 100644 (file)
@@ -246,7 +246,7 @@ function get_access_icons($course) {
                                     $eventdata->fullmessage       = get_string('enrolmentnewuser', '', $a);
                                     $eventdata->fullmessageformat = FORMAT_PLAIN;
                                     $eventdata->fullmessagehtml   = '';
-                                    $eventdata->smallmessage      = '';                        
+                                    $eventdata->smallmessage      = '';
                                     message_send($eventdata);
                                 }
                             }
index db1e913..96cfbf1 100644 (file)
@@ -388,7 +388,7 @@ function cron() {
         $eventdata->fullmessage       = $msg;
         $eventdata->fullmessageformat = FORMAT_PLAIN;
         $eventdata->fullmessagehtml   = '';
-        $eventdata->smallmessage      = '';                    
+        $eventdata->smallmessage      = '';
         message_send($eventdata);
 
         $this->log_line('Notification email sent to administrator.');
index 449bde5..a9caedc 100644 (file)
@@ -329,7 +329,7 @@ function cron() {
                             $eventdata->fullmessage       = $strexpirynotifystudentsemail;
                             $eventdata->fullmessageformat = FORMAT_PLAIN;
                             $eventdata->fullmessagehtml   = '';
-                            $eventdata->smallmessage      = '';                        
+                            $eventdata->smallmessage      = '';
                             message_send($eventdata);
                         }
                     }
@@ -354,7 +354,7 @@ function cron() {
                         $eventdata->fullmessage       = $strexpirynotifyemail;
                         $eventdata->fullmessageformat = FORMAT_PLAIN;
                         $eventdata->fullmessagehtml   = '';
-                        $eventdata->smallmessage      = '';                    
+                        $eventdata->smallmessage      = '';
                         message_send($eventdata);
                     }
                 }
index b0c22dd..33a5153 100644 (file)
                     $eventdata->fullmessage       = get_string('enrolmentnewuser', '', $a);
                     $eventdata->fullmessageformat = FORMAT_PLAIN;
                     $eventdata->fullmessagehtml   = '';
-                    $eventdata->smallmessage      = '';                        
+                    $eventdata->smallmessage      = '';
                     message_send($eventdata);
                 }
 
index af2af7d..668ca3d 100644 (file)
@@ -92,11 +92,11 @@ if ($editform->is_cancelled()) {
 
     // Plan the allocation
     if ($data->groupby == 'groups') {
-       $numgrps    = $data->number;
+        $numgrps    = $data->number;
         $userpergrp = floor($usercnt/$numgrps);
 
     } else { // members
-       $numgrps    = ceil($usercnt/$data->number);
+        $numgrps    = ceil($usercnt/$data->number);
         $userpergrp = $data->number;
 
         if (!empty($data->nosmallgroups) and $usercnt % $data->number != 0) {
@@ -194,7 +194,7 @@ if ($editform->is_cancelled()) {
         }
 
         // Save the groups data
-       foreach ($groups as $key=>$group) {
+        foreach ($groups as $key=>$group) {
             if (groups_get_group_by_name($courseid, $group['name'])) {
                 $error = get_string('groupnameexists', 'group', $group['name']);
                 $failed = true;
@@ -244,7 +244,7 @@ if ($error != '') {
 $editform->display();
 
 if($preview !== '') {
-       echo $OUTPUT->heading(get_string('groupspreview', 'group'));
+    echo $OUTPUT->heading(get_string('groupspreview', 'group'));
 
     echo $preview;
 }
index 016713d..71b02fc 100644 (file)
@@ -89,7 +89,7 @@ class autogroup_form extends moodleform {
 
 
     function validation($data, $files) {
-       global $CFG, $COURSE;
+        global $CFG, $COURSE;
         $errors = parent::validation($data, $files);
 
         if ($data['allocateby'] != 'no') {
@@ -102,7 +102,7 @@ class autogroup_form extends moodleform {
                 $usercnt = count($users);
 
                 if ($data['number'] > $usercnt || $data['number'] < 1) {
-                       $errors['number'] = get_string('toomanygroups', 'group', $usercnt);
+                    $errors['number'] = get_string('toomanygroups', 'group', $usercnt);
                 }
             }
         }
index ed82029..26e0f2a 100644 (file)
@@ -530,7 +530,7 @@ function groups_get_possible_roles($context) {
  * @return array An array of the users
  */
 function groups_get_potential_members($courseid, $roleid = null, $orderby = 'lastname,firstname') {
-       global $DB;
+    global $DB;
 
     $context = get_context_instance(CONTEXT_COURSE, $courseid);
     $sitecontext = get_context_instance(CONTEXT_SYSTEM);
@@ -606,7 +606,7 @@ function groups_parse_name($format, $groupnumber) {
         }
         $str = str_replace('@', $letter, $format);
     } else {
-       $str = str_replace('#', $groupnumber+1, $format);
+        $str = str_replace('#', $groupnumber+1, $format);
     }
     return($str);
 }
index 07d8dca..27d0d12 100644 (file)
@@ -1,71 +1,71 @@
 <h2>Grade</h2>
 <ul>
-       <li><a href="help.php?module=grade&amp;file=aggregateonlygraded.html">Aggregate only non-empty grades</a></li>
-       <li><a href="help.php?module=grade&amp;file=aggregateoutcomes.html">Include outcomes in aggregation</a></li>
-       <li><a href="help.php?module=grade&amp;file=aggregatesubcats.html">Aggregate including subcategories</a></li>
-       <li><a href="help.php?module=grade&amp;file=aggregation.html">Category aggregation</a></li>
-       <li><a href="help.php?module=grade&amp;file=aggregationcoefextra.html">Extra credit coefficient</a></li>
-       <li><a href="help.php?module=grade&amp;file=aggregationcoefextrasum.html">Act as extra credit</a></li>
-       <li><a href="help.php?module=grade&amp;file=aggregationcoefweight.html">Item weight</a></li>
-       <li><a href="help.php?module=grade&amp;file=aggregationposition.html">Aggregation position</a></li>
-       <li><a href="help.php?module=grade&amp;file=aggregationview.html">Aggregation view</a></li>
-       <li><a href="help.php?module=grade&amp;file=averagesdecimalpoints.html">Decimals in column averages</a></li>
-       <li><a href="help.php?module=grade&amp;file=averagesdisplaytype.html">Column averages display type</a></li>
-       <li><a href="help.php?module=grade&amp;file=calculation.html">Calculations</a></li>
-       <li><a href="help.php?module=grade&amp;file=category.html">Category</a></li>
-       <li><a href="help.php?module=grade&amp;file=decimalpoints.html">Overall decimal points</a></li>
-       <li><a href="help.php?module=grade&amp;file=droplow.html">Drop the lowest</a></li>
-       <li><a href="help.php?module=grade&amp;file=exceptions.html">Exceptions</a></li>
-       <li><a href="help.php?module=grade&amp;file=excluded.html">Excluded grades</a></li>
-       <li><a href="help.php?module=grade&amp;file=exportdecimalpoints.html">Export decimal points</a></li>
-       <li><a href="help.php?module=grade&amp;file=feedback.html">Feedback</a></li>
-       <li><a href="help.php?module=grade&amp;file=finalgrade.html">Final grade</a></li>
-       <li><a href="help.php?module=grade&amp;file=gradeboundary.html">Grade boundary</a></li>
-       <li><a href="help.php?module=grade&amp;file=gradedisplaytype.html">Grade display type</a></li>
-       <li><a href="help.php?module=grade&amp;file=gradeexportdisplaytype.html">Grade export display type</a></li>
-       <li><a href="help.php?module=grade&amp;file=gradeletter.html">Grade letters</a></li>
-       <li><a href="help.php?module=grade&amp;file=grademax.html">Maximum Grade</a></li>
-       <li><a href="help.php?module=grade&amp;file=grademin.html">Minimum Grade</a></li>
-       <li><a href="help.php?module=grade&amp;file=gradepass.html">Grade to pass</a></li>
-       <li><a href="help.php?module=grade&amp;file=gradetype.html">Grade type</a></li>
-       <li><a href="help.php?module=grade&amp;file=hidden.html">Hidden</a></li>
-       <li><a href="help.php?module=grade&amp;file=hiddenuntil.html">Hidden until</a></li>
-       <li><a href="help.php?module=grade&amp;file=idnumber.html">Id numbers</a></li>
-       <li><a href="help.php?module=grade&amp;file=iteminfo.html">Item info</a></li>
-       <li><a href="help.php?module=grade&amp;file=keephigh.html">Keep the highest</a></li>
-       <li><a href="help.php?module=grade&amp;file=letter.html">Letter scale</a></li>
-       <li><a href="help.php?module=grade&amp;file=linkedactivity.html">Linked activity</a></li>
-       <li><a href="help.php?module=grade&amp;file=locked.html">Locked</a></li>
-       <li><a href="help.php?module=grade&amp;file=lockedafter.html">Locked after</a></li>
-       <li><a href="help.php?module=grade&amp;file=meanselection.html">Grades selected for column averages</a></li>
-       <li><a href="help.php?module=grade&amp;file=multfactor.html">Multiplicator</a></li>
-       <li><a href="help.php?module=grade&amp;file=outcomeid.html">Outcome</a></li>
-       <li><a href="help.php?module=grade&amp;file=outcomestandard.html">Standard outcomes</a></li>
-       <li><a href="help.php?module=grade&amp;file=overridden.html">Overridden</a></li>
-       <li><a href="help.php?module=grade&amp;file=overridesitedefaultgradedisplaytype.html">Override site defaults</a></li>
-       <li><a href="help.php?module=grade&amp;file=plusfactor.html">Offset</a></li>
-       <li><a href="help.php?module=grade&amp;file=preferences.html">Set Preferences</a></li>
-       <li><a href="help.php?module=grade&amp;file=quickgrading.html">Quick grading</a></li>
-       <li><a href="help.php?module=grade&amp;file=rangesdecimalpoints.html">Decimals shown in ranges</a></li>
-       <li><a href="help.php?module=grade&amp;file=rangesdisplaytype.html">Range display type</a></li>
-       <li><a href="help.php?module=grade&amp;file=scaleid.html">Scale</a></li>
-       <li><a href="help.php?module=grade&amp;file=scalestandard.html">Standard scales</a></li>
-       <li><a href="help.php?module=grade&amp;file=showactivityicons.html">Show activity icons</a></li>
-       <li><a href="help.php?module=grade&amp;file=showaverages.html">Show averages</a></li>
-       <li><a href="help.php?module=grade&amp;file=showcalculations.html">Show calculations</a></li>
-       <li><a href="help.php?module=grade&amp;file=showeyecons.html"></a>Show show/hide icons</li>
-       <li><a href="help.php?module=grade&amp;file=showfeedback.html">Show feedback</a></li>
-       <li><a href="help.php?module=grade&amp;file=showgroups.html">Show groups</a></li>
-       <li><a href="help.php?module=grade&amp;file=showhiddenitems.html">Show hidden items</a></li>
-       <li><a href="help.php?module=grade&amp;file=showlocks.html">Show locks</a></li>
-       <li><a href="help.php?module=grade&amp;file=shownumberofgrades.html">Show number of grades</a></li>
-       <li><a href="help.php?module=grade&amp;file=showquickfeedback.html">Show quick feedback</a></li>
-       <li><a href="help.php?module=grade&amp;file=showranges.html">Show ranges</a></li>
-       <li><a href="help.php?module=grade&amp;file=showrank.html">Show rank</a></li>
-       <li><a href="help.php?module=grade&amp;file=showuseridnumber.html">Show user id numbers</a></li>
-       <li><a href="help.php?module=grade&amp;file=student.html">Student Grade Help</a></li>
-       <li><a href="help.php?module=grade&amp;file=studentsperpage.html">Students per page</a></li>
-       <li><a href="help.php?module=grade&amp;file=teacher.html">Grades</a></li>
-       <li><a href="help.php?module=grade&amp;file=userkey.html">User key</a></li>
-       <li><a href="help.php?module=grade&amp;file=weight.html">Weight</a></li> 
+    <li><a href="help.php?module=grade&amp;file=aggregateonlygraded.html">Aggregate only non-empty grades</a></li>
+    <li><a href="help.php?module=grade&amp;file=aggregateoutcomes.html">Include outcomes in aggregation</a></li>
+    <li><a href="help.php?module=grade&amp;file=aggregatesubcats.html">Aggregate including subcategories</a></li>
+    <li><a href="help.php?module=grade&amp;file=aggregation.html">Category aggregation</a></li>
+    <li><a href="help.php?module=grade&amp;file=aggregationcoefextra.html">Extra credit coefficient</a></li>
+    <li><a href="help.php?module=grade&amp;file=aggregationcoefextrasum.html">Act as extra credit</a></li>
+    <li><a href="help.php?module=grade&amp;file=aggregationcoefweight.html">Item weight</a></li>
+    <li><a href="help.php?module=grade&amp;file=aggregationposition.html">Aggregation position</a></li>
+    <li><a href="help.php?module=grade&amp;file=aggregationview.html">Aggregation view</a></li>
+    <li><a href="help.php?module=grade&amp;file=averagesdecimalpoints.html">Decimals in column averages</a></li>
+    <li><a href="help.php?module=grade&amp;file=averagesdisplaytype.html">Column averages display type</a></li>
+    <li><a href="help.php?module=grade&amp;file=calculation.html">Calculations</a></li>
+    <li><a href="help.php?module=grade&amp;file=category.html">Category</a></li>
+    <li><a href="help.php?module=grade&amp;file=decimalpoints.html">Overall decimal points</a></li>
+    <li><a href="help.php?module=grade&amp;file=droplow.html">Drop the lowest</a></li>
+    <li><a href="help.php?module=grade&amp;file=exceptions.html">Exceptions</a></li>
+    <li><a href="help.php?module=grade&amp;file=excluded.html">Excluded grades</a></li>
+    <li><a href="help.php?module=grade&amp;file=exportdecimalpoints.html">Export decimal points</a></li>
+    <li><a href="help.php?module=grade&amp;file=feedback.html">Feedback</a></li>
+    <li><a href="help.php?module=grade&amp;file=finalgrade.html">Final grade</a></li>
+    <li><a href="help.php?module=grade&amp;file=gradeboundary.html">Grade boundary</a></li>
+    <li><a href="help.php?module=grade&amp;file=gradedisplaytype.html">Grade display type</a></li>
+    <li><a href="help.php?module=grade&amp;file=gradeexportdisplaytype.html">Grade export display type</a></li>
+    <li><a href="help.php?module=grade&amp;file=gradeletter.html">Grade letters</a></li>
+    <li><a href="help.php?module=grade&amp;file=grademax.html">Maximum Grade</a></li>
+    <li><a href="help.php?module=grade&amp;file=grademin.html">Minimum Grade</a></li>
+    <li><a href="help.php?module=grade&amp;file=gradepass.html">Grade to pass</a></li>
+    <li><a href="help.php?module=grade&amp;file=gradetype.html">Grade type</a></li>
+    <li><a href="help.php?module=grade&amp;file=hidden.html">Hidden</a></li>
+    <li><a href="help.php?module=grade&amp;file=hiddenuntil.html">Hidden until</a></li>
+    <li><a href="help.php?module=grade&amp;file=idnumber.html">Id numbers</a></li>
+    <li><a href="help.php?module=grade&amp;file=iteminfo.html">Item info</a></li>
+    <li><a href="help.php?module=grade&amp;file=keephigh.html">Keep the highest</a></li>
+    <li><a href="help.php?module=grade&amp;file=letter.html">Letter scale</a></li>
+    <li><a href="help.php?module=grade&amp;file=linkedactivity.html">Linked activity</a></li>
+    <li><a href="help.php?module=grade&amp;file=locked.html">Locked</a></li>
+    <li><a href="help.php?module=grade&amp;file=lockedafter.html">Locked after</a></li>
+    <li><a href="help.php?module=grade&amp;file=meanselection.html">Grades selected for column averages</a></li>
+    <li><a href="help.php?module=grade&amp;file=multfactor.html">Multiplicator</a></li>
+    <li><a href="help.php?module=grade&amp;file=outcomeid.html">Outcome</a></li>
+    <li><a href="help.php?module=grade&amp;file=outcomestandard.html">Standard outcomes</a></li>
+    <li><a href="help.php?module=grade&amp;file=overridden.html">Overridden</a></li>
+    <li><a href="help.php?module=grade&amp;file=overridesitedefaultgradedisplaytype.html">Override site defaults</a></li>
+    <li><a href="help.php?module=grade&amp;file=plusfactor.html">Offset</a></li>
+    <li><a href="help.php?module=grade&amp;file=preferences.html">Set Preferences</a></li>
+    <li><a href="help.php?module=grade&amp;file=quickgrading.html">Quick grading</a></li>
+    <li><a href="help.php?module=grade&amp;file=rangesdecimalpoints.html">Decimals shown in ranges</a></li>
+    <li><a href="help.php?module=grade&amp;file=rangesdisplaytype.html">Range display type</a></li>
+    <li><a href="help.php?module=grade&amp;file=scaleid.html">Scale</a></li>
+    <li><a href="help.php?module=grade&amp;file=scalestandard.html">Standard scales</a></li>
+    <li><a href="help.php?module=grade&amp;file=showactivityicons.html">Show activity icons</a></li>
+    <li><a href="help.php?module=grade&amp;file=showaverages.html">Show averages</a></li>
+    <li><a href="help.php?module=grade&amp;file=showcalculations.html">Show calculations</a></li>
+    <li><a href="help.php?module=grade&amp;file=showeyecons.html"></a>Show show/hide icons</li>
+    <li><a href="help.php?module=grade&amp;file=showfeedback.html">Show feedback</a></li>
+    <li><a href="help.php?module=grade&amp;file=showgroups.html">Show groups</a></li>
+    <li><a href="help.php?module=grade&amp;file=showhiddenitems.html">Show hidden items</a></li>
+    <li><a href="help.php?module=grade&amp;file=showlocks.html">Show locks</a></li>
+    <li><a href="help.php?module=grade&amp;file=shownumberofgrades.html">Show number of grades</a></li>
+    <li><a href="help.php?module=grade&amp;file=showquickfeedback.html">Show quick feedback</a></li>
+    <li><a href="help.php?module=grade&amp;file=showranges.html">Show ranges</a></li>
+    <li><a href="help.php?module=grade&amp;file=showrank.html">Show rank</a></li>
+    <li><a href="help.php?module=grade&amp;file=showuseridnumber.html">Show user id numbers</a></li>
+    <li><a href="help.php?module=grade&amp;file=student.html">Student Grade Help</a></li>
+    <li><a href="help.php?module=grade&amp;file=studentsperpage.html">Students per page</a></li>
+    <li><a href="help.php?module=grade&amp;file=teacher.html">Grades</a></li>
+    <li><a href="help.php?module=grade&amp;file=userkey.html">User key</a></li>
+    <li><a href="help.php?module=grade&amp;file=weight.html">Weight</a></li> 
 </ul>
index 25c2098..b7d80a5 100644 (file)
@@ -109,13 +109,13 @@ class MoodleQuickForm_date_time_selector extends MoodleQuickForm_group{
         $this->_elements[] =& MoodleQuickForm::createElement('select', 'day', get_string('day', 'form'), $days, $this->getAttributes(), true);
         $this->_elements[] =& MoodleQuickForm::createElement('select', 'month', get_string('month', 'form'), $months, $this->getAttributes(), true);
         $this->_elements[] =& MoodleQuickForm::createElement('select', 'year', get_string('year', 'form'), $years, $this->getAttributes(), true);
-               if (right_to_left()) {   // Switch order of elements for Right-to-Left
-                       $this->_elements[] =& MoodleQuickForm::createElement('select', 'minute', get_string('minute', 'form'), $minutes, $this->getAttributes(), true);
-                       $this->_elements[] =& MoodleQuickForm::createElement('select', 'hour', get_string('hour', 'form'), $hours, $this->getAttributes(), true);
-               } else {
-                       $this->_elements[] =& MoodleQuickForm::createElement('select', 'hour', get_string('hour', 'form'), $hours, $this->getAttributes(), true);
-                       $this->_elements[] =& MoodleQuickForm::createElement('select', 'minute', get_string('minute', 'form'), $minutes, $this->getAttributes(), true);
-               }
+        if (right_to_left()) {   // Switch order of elements for Right-to-Left
+            $this->_elements[] =& MoodleQuickForm::createElement('select', 'minute', get_string('minute', 'form'), $minutes, $this->getAttributes(), true);
+            $this->_elements[] =& MoodleQuickForm::createElement('select', 'hour', get_string('hour', 'form'), $hours, $this->getAttributes(), true);
+        } else {
+            $this->_elements[] =& MoodleQuickForm::createElement('select', 'hour', get_string('hour', 'form'), $hours, $this->getAttributes(), true);
+            $this->_elements[] =& MoodleQuickForm::createElement('select', 'minute', get_string('minute', 'form'), $minutes, $this->getAttributes(), true);
+        }
         // If optional we add a checkbox which the user can use to turn if on
         if($this->_options['optional']) {
             $this->_elements[] =& MoodleQuickForm::createElement('checkbox', 'enabled', null, get_string('enable'), $this->getAttributes(), true);
index 3cd0aa4..6d89337 100644 (file)
@@ -477,14 +477,14 @@ WHERE
 
         // Try with no activities
         $DB->expectAt(0,'get_records_select',array('course_modules',
-                 'course=42 AND completion<>'.COMPLETION_TRACKING_NONE));
+              'course=42 AND completion<>'.COMPLETION_TRACKING_NONE));
         $DB->setReturnValueAt(0,'get_records_select',array());
         $result=$c->get_activities();
         $this->assertEqual(array(),$result);
 
         // Try with an activity (need to fake up modinfo for it as well)
         $DB->expectAt(1,'get_records_select',array('course_modules',
-                 'course=42 AND completion<>'.COMPLETION_TRACKING_NONE));
+              'course=42 AND completion<>'.COMPLETION_TRACKING_NONE));
         $DB->setReturnValueAt(1,'get_records_select',array(
             13=>(object)array('id'=>13)
         ));
index 7f3a500..7dd0611 100644 (file)
@@ -38,7 +38,7 @@ class moodlesimplepie_test extends UnitTestCase {
 
         $this->assertFalse($feed->error(), "Failed to load the sample RSS file. Please check your proxy settings in Moodle. %s");
         if ($feed->error()) {
-               return;
+            return;
         }
 
         $this->assertEqual($feed->get_title(), 'Moodle News');
@@ -58,7 +58,7 @@ class moodlesimplepie_test extends UnitTestCase {
 
         $this->assertTrue($itemone = $feed->get_item(0));
         if (!$itemone) {
-               return;
+            return;
         }
 
         $this->assertEqual($itemone->get_title(), 'Google HOP contest encourages pre-University students to work on Moodle');
index bd97a7c..b6b2784 100644 (file)
@@ -92,7 +92,7 @@ class ContainsTagWithAttribute_test extends UnitTestCase {
     }
 
     function test_real_regression1() {
-       $expectation = new ContainsTagWithAttribute('label', 'for', 'html_select4ac387224bf9d');
+        $expectation = new ContainsTagWithAttribute('label', 'for', 'html_select4ac387224bf9d');
         $html = '<label for="html_select4ac387224bf9d">Cool menu</label><select name="mymenu" id="html_select4ac387224bf9d" class="menumymenu select"> <option value="0">Choose...</option><option value="10">ten</option><option value="c2">two</option></select>';
         $this->assert($expectation, $html);
     }
index 0be971c..b9e4a02 100644 (file)
@@ -188,20 +188,20 @@ class CheckSpecifiedFieldsExpectation extends SimpleExpectation {
 }
 
 abstract class XMLStructureExpectation extends SimpleExpectation {
-       /**
-        * Parse a string as XML and return a DOMDocument;
-        * @param $html
-        * @return unknown_type
-        */
+    /**
+     * Parse a string as XML and return a DOMDocument;
+     * @param $html
+     * @return unknown_type
+     */
     protected function load_xml($html) {
-       $prevsetting = libxml_use_internal_errors(true);
-       $parser = new DOMDocument();
-       if (!$parser->loadXML('<html>' . $html . '</html>')) {
-               $parser = new DOMDocument();
-       }
+        $prevsetting = libxml_use_internal_errors(true);
+        $parser = new DOMDocument();
+        if (!$parser->loadXML('<html>' . $html . '</html>')) {
+            $parser = new DOMDocument();
+        }
         libxml_clear_errors();
-       libxml_use_internal_errors($prevsetting);
-       return $parser;
+        libxml_use_internal_errors($prevsetting);
+        return $parser;
     }
 }
 /**
index 0f6688a..0119611 100644 (file)
@@ -1390,7 +1390,7 @@ class assignment_base {
                     }
                 }
 
-                               $userlink = '<a href="' . $CFG->wwwroot . '/user/view.php?id=' . $auser->id . '&amp;course=' . $course->id . '">' . fullname($auser) . '</a>';
+                $userlink = '<a href="' . $CFG->wwwroot . '/user/view.php?id=' . $auser->id . '&amp;course=' . $course->id . '">' . fullname($auser) . '</a>';
                 $row = array($picture, $userlink, $grade, $comment, $studentmodified, $teachermodified, $status, $finalgrade);
                 if ($uses_outcomes) {
                     $row[] = $outcomes;
index 6fd015f..1a4b63f 100644 (file)
@@ -961,9 +961,9 @@ class assignment_upload extends assignment_base {
             return false;
         }
 
-               if ($this->is_finalized($submission)) {
-                   return false;
-               }
+        if ($this->is_finalized($submission)) {
+            return false;
+        }
 
         if (has_capability('mod/assignment:grade', $this->context)) {
             return true;
index aa9b2ea..f6d8a32 100644 (file)
@@ -219,7 +219,7 @@ class mod_forum_mod_form extends moodleform_mod {
         }
     }
 
-         function add_completion_rules() {
+      function add_completion_rules() {
         $mform =& $this->_form;
 
         $group=array();
index e33b948..c6c1854 100644 (file)
@@ -33,9 +33,9 @@ function AddWhiteSpace(BeforeOrAfter, id) {
             obj = obj.parentNode;
         }
         if (obj) {
-                       switch (BeforeOrAfter) {
-                               case 'before': obj.style.marginTop = '1.8em'; break;
-                               case 'after': obj.style.marginBottom = '0.8em'; break;
+            switch (BeforeOrAfter) {
+                case 'before': obj.style.marginTop = '1.8em'; break;
+                case 'after': obj.style.marginBottom = '0.8em'; break;
             }
         }
     }
index c734ba1..d8621cd 100644 (file)
@@ -783,7 +783,7 @@ class securewindow_access_rule extends quiz_access_rule_base {
 class safebrowser_access_rule extends quiz_access_rule_base {
     public function prevent_access() {
         if (!$this->_quizobj->is_preview_user() && !quiz_check_safe_browser()) {
-            return get_string('safebrowsererror', 'quiz');     
+            return get_string('safebrowsererror', 'quiz');
         } else {
             return false;
         }
index e042868..096fac5 100755 (executable)
@@ -8,12 +8,11 @@
     include_once('lib.php');
     require_once('locallib.php');
     require_once('datamodels/aicclib.php');
-       
-    foreach ($_POST as $key => $value)
-               {
-                       $tempkey = strtolower($key);
-                       $_POST[$tempkey] = $value;
-       }
+
+    foreach ($_POST as $key => $value) {
+            $tempkey = strtolower($key);
+            $_POST[$tempkey] = $value;
+    }
 
     $command = required_param('command', PARAM_ALPHA);
     $sessionid = required_param('session_id', PARAM_ALPHANUM);
index 3dda7c7..f7d8cf7 100644 (file)
@@ -695,8 +695,8 @@ function SCORMapi1_3() {
                                                 }
                                              break;
                                          case 'cmi.interactions.n.correct_responses.n.pattern':
-                                                                                        subel= subelement.split('.');
-                                                                                        subel1= 'cmi.interactions.'+subel[2];
+                                                subel= subelement.split('.');
+                                             subel1= 'cmi.interactions.'+subel[2];
 
                                                 if (typeof eval(subel1+'.type') == "undefined") {
                                                     errorCode="408";
index c81d97f..8fc5536 100755 (executable)
@@ -460,7 +460,7 @@ function scorm_get_tracks($scoid,$userid,$attempt='') {
  *
  */
 function scorm_get_sco_runtime($scormid, $scoid, $userid, $attempt=1) {
-       global $DB;
+    global $DB;
 
     $timedata = new object();
     $sql = !empty($scoid) ? "userid=$userid AND scormid=$scormid AND scoid=$scoid AND attempt=$attempt" : "userid=$userid AND scormid=$scormid AND attempt=$attempt";
index 2a23e6c..9127c01 100644 (file)
@@ -30,7 +30,7 @@ class portfolio_plugin_googledocs extends portfolio_plugin_push_base {
         // we send the files as they are, no prep required
         return true;
     }
-       
+
     public function get_interactive_continue_url(){
         return 'http://docs.google.com/';
     }
index f0fab4a..a5082d6 100644 (file)
@@ -23,7 +23,7 @@ class portfolio_plugin_picasa extends portfolio_plugin_push_base {
         // we send the files as they are, no prep required
         return true;
     }
-       
+
     public function get_interactive_continue_url(){
         return 'http://picasaweb.google.com/';
     }
index c621bb4..07d66f0 100644 (file)
@@ -1451,7 +1451,7 @@ class question_bank_view {
                     if ($questionlist = explode(',', $deleteselected)) {
                         // for each question either hide it if it is in use or delete it
                         foreach ($questionlist as $questionid) {
-                               $questionid = (int)$questionid;
+                            $questionid = (int)$questionid;
                             question_require_capability_on($questionid, 'edit');
                             if ($DB->record_exists('quiz_question_instances', array('question' => $questionid))) {
                                 if (!$DB->set_field('question', 'hidden', 1, array('id' => $questionid))) {
index 23fd4cd..5c7d889 100644 (file)
@@ -49,17 +49,17 @@ class qformat_blackboard extends qformat_default {
 function process_essay($xml, &$questions ) {
 
     if (isset($xml["POOL"]["#"]["QUESTION_ESSAY"])) {
-       $essayquestions = $xml["POOL"]["#"]["QUESTION_ESSAY"];
+        $essayquestions = $xml["POOL"]["#"]["QUESTION_ESSAY"];
     }
     else {
-       return;
-    }  
+        return;
+    }
 
     foreach ($essayquestions as $essayquestion) {
 
         $question = $this->defaultquestion();
 
-        $question->qtype = ESSAY;      
+        $question->qtype = ESSAY;
 
         // determine if the question is already escaped html
         $ishtml = $essayquestion["#"]["BODY"][0]["#"]["FLAGS"][0]["#"]["ISHTML"][0]["@"]["value"];
@@ -76,7 +76,7 @@ function process_essay($xml, &$questions ) {
         $question->fraction = 0;
 
         $questions[] = $question;
-    }  
+    }
 }
 
 //----------------------------------------
index 8aceae4..232ca23 100644 (file)
@@ -28,10 +28,10 @@ class question_dataset_dependent_definitions_form extends moodleform {
         global $QTYPES, $DB;
         $this->question = $question;
         $this->qtypeobj =& $QTYPES[$this->question->qtype];
-                               // Validate the question category.
-                               if (!$category = $DB->get_record('question_categories', array('id' => $question->category))) {
-                                   print_error('categorydoesnotexist', 'question', $returnurl);
-                               }
+        // Validate the question category.
+        if (!$category = $DB->get_record('question_categories', array('id' => $question->category))) {
+            print_error('categorydoesnotexist', 'question', $returnurl);
+        }
         $this->category = $category;
         $this->categorycontext = get_context_instance_by_id($category->contextid);
         parent::moodleform($submiturl);
index 93ccd3b..46bd508 100644 (file)
@@ -36,10 +36,10 @@ class question_dataset_dependent_items_form extends moodleform {
         $this->regenerate = $regenerate;
         $this->question = $question;
         $this->qtypeobj =& $QTYPES[$this->question->qtype];
-                               // Validate the question category.
-                               if (!$category = $DB->get_record('question_categories', array('id' => $question->category))) {
-                                   print_error('categorydoesnotexist', 'question', $returnurl);
-                               }
+        // Validate the question category.
+        if (!$category = $DB->get_record('question_categories', array('id' => $question->category))) {
+            print_error('categorydoesnotexist', 'question', $returnurl);
+        }
         $this->category = $category;
         $this->categorycontext = get_context_instance_by_id($category->contextid);
         //get the dataset defintions for this question
index 6dc9eb5..c8841fe 100644 (file)
@@ -1041,29 +1041,29 @@ class question_calculated_qtype extends default_questiontype {
         }
     }
 
-               /**
-               * This function get the dataset items using id as unique parameter and return an
-               * array with itemnumber as index sorted ascendant
-               * If the multiple records with the same itemnumber exist, only the newest one
-               * i.e with the greatest id is used, the others are ignored but not deleted.
-               * MDL-19210
-               */
+    /**
+    * This function get the dataset items using id as unique parameter and return an
+    * array with itemnumber as index sorted ascendant
+    * If the multiple records with the same itemnumber exist, only the newest one
+    * i.e with the greatest id is used, the others are ignored but not deleted.
+    * MDL-19210
+    */
     function get_database_dataset_items($definition){
-       global $CFG, $DB;
-               $databasedataitems = $DB->get_records_sql( // Use number as key!!
-                        " SELECT id , itemnumber, definition,  value
-                          FROM {question_dataset_items}
-                          WHERE definition = $definition order by id DESC ", array($definition));
-       $dataitems = Array();
-               foreach($databasedataitems as $id => $dataitem  ){
-               if (!isset($dataitems[$dataitem->itemnumber])){
-                           $dataitems[$dataitem->itemnumber] = $dataitem ;
-                         }else {
-                               // deleting the unused records could be added here
-                         }
-               }
-               ksort($dataitems);
-               return $dataitems ;
+        global $CFG, $DB;
+        $databasedataitems = $DB->get_records_sql( // Use number as key!!
+                    " SELECT id , itemnumber, definition,  value
+                      FROM {question_dataset_items}
+                      WHERE definition = $definition order by id DESC ", array($definition));
+        $dataitems = Array();
+        foreach($databasedataitems as $id => $dataitem  ){
+        if (!isset($dataitems[$dataitem->itemnumber])){
+                $dataitems[$dataitem->itemnumber] = $dataitem ;
+            }else {
+                // deleting the unused records could be added here
+            }
+        }
+        ksort($dataitems);
+        return $dataitems ;
     }
 
     function save_dataset_items($question, $fromform){
index da7e92f..f7cfb62 100644 (file)
@@ -217,7 +217,6 @@ class question_calculatedsimple_qtype extends question_calculated_qtype {
     * @param PARAM_ALPHA $wizardnow should be added as we are coming from question2.php
     */
     function save_question($question, $form, $course) {
-       
         $question = default_questiontype::save_question($question, $form, $course);
         return $question;
     }
index 991c76d..5b90371 100644 (file)
@@ -33,7 +33,7 @@ class question_edit_essay_form extends question_edit_form {
     }
 
     function set_data($question) {
-        if (!empty($question->options) && !empty($question->options->answers)) {       
+        if (!empty($question->options) && !empty($question->options->answers)) {
             $answer = reset($question->options->answers);
             $question->feedback = $answer->feedback;
         }
index ab34b86..139b0de 100644 (file)
@@ -47,9 +47,9 @@
 
   <div class="answer">
     <fieldset class="answer"  id="generalheader">
-        <legend class="ftoggler">
-           <?php echo get_string('datasetnumber', 'quiz') ; ?>
-        </legend>
+         <legend class="ftoggler">
+            <?php echo get_string('datasetnumber', 'quiz') ; ?>
+         </legend>
     <input type="text" class="<?php echo $class; ?>" <?php echo "$readonly  $nameanswer $valueanswer"; //
     ?> size="<?php echo $textlength;?>" />
     <?php echo $feedbackimg; ?>
@@ -79,9 +79,9 @@
 ?>
 <div class="answer">
     <fieldset class="clearfix"  id="generalheader">
-        <legend class="ftoggler">
-           <?php echo get_string('unit', 'quiz'); ?>
-        </legend>
+         <legend class="ftoggler">
+            <?php echo get_string('unit', 'quiz'); ?>
+         </legend>
     <input type="text" class="<?php echo $classunit; ?>" <?php echo "$readonly  $nameunit $valueunit"; //
     ?> size="<?php echo $textlength;?>"/>
     <?php echo $feedbackimgunit; ?>
 ?>
   <div class="answer">
     <fieldset class="clearfix"  id="generalheader">
-        <legend class="ftoggler">
-           <?php echo get_string('unit', 'quiz');
-           //echo $question->options->units[0]->unit  ;
-            ?>
-        </legend>
+         <legend class="ftoggler">
+            <?php echo get_string('unit', 'quiz');
+            //echo $question->options->units[0]->unit  ;
+             ?>
+         </legend>
     <input type="hidden"
     <?php
     echo $nameunit; echo $valueunit ;
 
  <div class="answer">
     <fieldset class="clearfix"  id="generalheader">
-        <legend class="ftoggler">
-           <?php echo get_string('datasetnumber', 'quiz'); ?>
-        </legend>
+         <legend class="ftoggler">
+            <?php echo get_string('datasetnumber', 'quiz'); ?>
+         </legend>
     <input type="text" class="<?php echo $class; ?>" <?php echo "$readonly  $nameanswer $valueanswer"; //
     ?> size="<?php echo $textlength;?>"/>
     <?php echo $feedbackimg; ?>
 
        <div class="feedback">
         <fieldset class="clearfix"  id="generalheader">
-        <legend class="ftoggler">
-           <?php echo get_string('instructions', 'auth'); ?>
-        </legend>
+         <legend class="ftoggler">
+            <?php echo get_string('instructions', 'auth'); ?>
+         </legend>
        <div class="feedback">
         <fieldset class="clearfix"  id="generalheader">
-        <legend class="ftoggler">
+         <legend class="ftoggler">
      <?php echo get_string('validnumberformats', 'qtype_numerical');?>
-        </legend>
+         </legend>
      <?php echo get_string('validnumbers', 'qtype_numerical');?>
      </fieldset>
        </div>
index c2c0ba3..227dc95 100755 (executable)
@@ -28,10 +28,10 @@ class repository_alfresco extends repository {
                 // deal with user logging in
                 if (empty($SESSION->{$this->sessname}) && !empty($this->username) && !empty($this->password)) {
                     $this->ticket = $this->instance->authenticate($this->username, $this->password);
-                    $SESSION->{$this->sessname} = $this->ticket;       
+                    $SESSION->{$this->sessname} = $this->ticket;
                 } else {
                     if (!empty($SESSION->{$this->sessname})) {
-                        $this->ticket = $SESSION->{$this->sessname};   
+                        $this->ticket = $SESSION->{$this->sessname};
                     }
                 }
                 $this->user_session = $this->instance->createSession($this->ticket);
@@ -152,7 +152,7 @@ class repository_alfresco extends repository {
     public function print_search($client_id) {
         $str = parent::print_search($client_id);
         $str .= '<label>Space: </label><br /><select name="space">';
-        foreach ($this->user_session->stores as $v) {  
+        foreach ($this->user_session->stores as $v) {
             $str .= '<option ';
             if ($v->__toString() === 'workspace://SpacesStore') {
                 $str .= 'selected ';
@@ -169,7 +169,7 @@ class repository_alfresco extends repository {
     public function search($search_text) {
         global $CFG;
         $space = optional_param('space', 'workspace://SpacesStore', PARAM_RAW);
-        $currentStore = $this->user_session->getStoreFromString($space);       
+        $currentStore = $this->user_session->getStoreFromString($space);
         $nodes = $this->user_session->query($currentStore, $search_text);
         $ret = array();
         $ret['list'] = array();
index 70511ce..dcc5159 100755 (executable)
@@ -1,13 +1,13 @@
 <?php
 class moodle_image {
-       private $imagepath;
-       private $info;
-       private $width;
-       private $height;
-       private $image;
-       private $backup;
+    private $imagepath;
+    private $info;
+    private $width;
+    private $height;
+    private $image;
+    private $backup;
 
-       function __construct($img) {
+    function __construct($img) {
         if(!function_exists('imagecreatefrompng')
             and !function_exists('imagecreatefromjpeg')) {
             throw new moodle_exception('gdnotexist');
@@ -15,12 +15,12 @@ class moodle_image {
         if(!file_exists($img) or !is_readable($img)) {
             throw new moodle_exception('invalidfile');
         }
-               
-               $this->imagepath = $img;
+
+        $this->imagepath = $img;
         unset($img);
-               $this->info = getimagesize($this->imagepath);
+        $this->info = getimagesize($this->imagepath);
 
-               switch($this->info['mime']) {
+        switch($this->info['mime']) {
         case 'image/jpeg':
             $this->image = imagecreatefromjpeg($this->imagepath);
             break;
@@ -32,21 +32,21 @@ class moodle_image {
             break;
         default:
             break;
-               }
-               $this->width  = imagesx($this->image);
-               $this->height = imagesy($this->image);
-       }
+        }
+        $this->width  = imagesx($this->image);
+        $this->height = imagesy($this->image);
+    }
 
-       function destroy() {
-                imagedestroy($this->image);
-                imagedestroy($this->backup);
+    function destroy() {
+         imagedestroy($this->image);
+         imagedestroy($this->backup);
          return true;
-       }
+    }
 
-       function undo() {
-               $this->image = $this->backup;
-               return $this;
-       }
+    function undo() {
+        $this->image = $this->backup;
+        return $this;
+    }
 
     function watermark($text='', $pos=array(), $options=array()) {
         global $CFG;
@@ -81,12 +81,12 @@ class moodle_image {
         return $this;
     }
 
-       function rotate($angle=0, $bgcolor=0) {
-               $this->image = imagerotate($this->image, $angle, $bgcolor);
-               return $this;
-       }
-       
-       function resize($w, $h, $use_resize = true) {
+    function rotate($angle=0, $bgcolor=0) {
+        $this->image = imagerotate($this->image, $angle, $bgcolor);
+        return $this;
+    }
+
+    function resize($w, $h, $use_resize = true) {
         if(empty($h) && !empty($w)) {
             $h = $this->height * ($w/$this->width);
         }
@@ -97,11 +97,11 @@ class moodle_image {
         imagealphablending($new_img, false);
         imagecopyresampled($new_img /* dst */, $this->image /* src */, 0, 0, 0, 0, $w, $h, $this->width, $this->height);
         $this->image = $new_img;
-               return $this;
-       }
+        return $this;
+    }
 
-       function saveas($imagepath) {
-               switch($this->info['mime']) {
+    function saveas($imagepath) {
+        switch($this->info['mime']) {
         case 'image/jpeg':
             return imagejpeg($this->image, $imagepath);
             break;
@@ -113,17 +113,17 @@ class moodle_image {
             break;
         default:
             break;
-               }
+        }
         if(!$this->destroy()) {
             return false;
         } else {
             return $this;
         }
-       }
+    }
 
-       function display() {
-               header('Content-type: '.$this->info['mime']);
-               switch($this->info['mime']) {
+    function display() {
+        header('Content-type: '.$this->info['mime']);
+        switch($this->info['mime']) {
         case 'image/png':
             imagepng($this->image);
             break;
@@ -135,9 +135,9 @@ class moodle_image {
             break;
         default:
             break;
-               }
-               $this->destroy();
-               return $this;
-       }
+        }
+        $this->destroy();
+        return $this;
+    }
 }
 
index ff6d461..d585c74 100755 (executable)
@@ -77,7 +77,7 @@ class repository_merlot extends repository {
         $this->api = 'http://www.merlot.org/merlot/materials.rest?keywords=' . urlencode($keyword) . '&licenseKey='.$this->licensekey;
         $c = new curl(array('cache'=>true, 'module_cache'=>'repository'));
         $content = $c->get($this->api);
-               $xml = simplexml_load_string($content);
+        $xml = simplexml_load_string($content);
         foreach ($xml->results->material as $entry) {
             $list[] = array(
                 'title'=>(string)$entry->title,
index d5e612f..6b321a0 100644 (file)
@@ -1306,9 +1306,9 @@ function open_filepicker(id, params) {
 }
 
 function id2_add_clientid(id, clientid) {
-       id2clientid[id] = clientid;
+    id2clientid[id] = clientid;
 }
 
 function id2_add_itemid(id, drafitemid) {
-       id2itemid[id] = drafitemid;
+    id2itemid[id] = drafitemid;
 }
index 1af4051..e484796 100644 (file)
@@ -31,9 +31,9 @@ class repository_youtube extends repository {
         $this->feed_url = 'http://gdata.youtube.com/feeds/api/videos?q=' . urlencode($keyword) . '&format=5&start-index=' . $start . '&max-results=' .$max . '&orderby=' . $sort;
         $c = new curl(array('cache'=>true, 'module_cache'=>'repository'));
         $content = $c->get($this->feed_url);
-               $xml = simplexml_load_string($content);
+        $xml = simplexml_load_string($content);
         $media = $xml->entry->children('http://search.yahoo.com/mrss/');
-           $links = $xml->children('http://www.w3.org/2005/Atom');
+        $links = $xml->children('http://www.w3.org/2005/Atom');
         foreach ($xml->entry as $entry) {
             $media = $entry->children('http://search.yahoo.com/mrss/');
             $title = $media->group->title;
index 020428c..3f93bd6 100644 (file)
@@ -86,7 +86,7 @@ if ($courses = coursetag_get_tagged_courses($tag->id)) {
 
     foreach ($courses as $course) {
         print_course($course);
-       }
+    }
 
     echo $OUTPUT->box_end();
 }
index e670009..1931ed9 100644 (file)
@@ -1,6 +1,6 @@
 <div style="text-align:center;">
-       <h2 style="margin-bottom:2px;">Anomaly Theme Pack</h2>
-       <h3 style="margin:0">by <a href="http://newschoollearning.com" title="NewSchool Learning: Standards Based Moodle Designs">Patrick Malley</a></h3><h4 style="margin:3px">Version: 20090119</h4>
+    <h2 style="margin-bottom:2px;">Anomaly Theme Pack</h2>
+    <h3 style="margin:0">by <a href="http://newschoollearning.com" title="NewSchool Learning: Standards Based Moodle Designs">Patrick Malley</a></h3><h4 style="margin:3px">Version: 20090119</h4>
 </div>
 <div>&nbsp;
 </div>
@@ -11,9 +11,9 @@
 
 <p>The default color for this theme is green. To select a different color variant: </p>
 <ol>
-       <li>Remane styles_select.css to styles_green.css.</li>
-       <li>Rename the styles_[color].css variant that you would like to use to styles_select.css.</li>
-       <li>That's it. Where you expecting something trickier?</li>
+    <li>Remane styles_select.css to styles_green.css.</li>
+    <li>Rename the styles_[color].css variant that you would like to use to styles_select.css.</li>
+    <li>That's it. Where you expecting something trickier?</li>
 </ol>
 
 <h3 style="margin-bottom:5px; margin-top:5px;">Editing your Site Tagline</h3>
 
 <p>Here's the code in header.html that is responsible for this (highlighted in red; found on line 58):</p>
 
-               <code style="display:block; padding:10px; margin:10px; background:#f6f6f6; border:1px solid #eee;">
-                       &lt;h1 class=&quot;headermain&quot;&gt;&lt;?php echo $heading ?&gt;<span style="color:#ff0000">&lt;br /&gt;&lt;span&gt;&lt;?php echo $COURSE-&gt;summary //Retrieves Site Description from Front Page -&gt; Front Page Settings ?&gt;&lt;/span&gt;</span>&lt;/h1&gt;
-               </code>
+        <code style="display:block; padding:10px; margin:10px; background:#f6f6f6; border:1px solid #eee;">
+            &lt;h1 class=&quot;headermain&quot;&gt;&lt;?php echo $heading ?&gt;<span style="color:#ff0000">&lt;br /&gt;&lt;span&gt;&lt;?php echo $COURSE-&gt;summary //Retrieves Site Description from Front Page -&gt; Front Page Settings ?&gt;&lt;/span&gt;</span>&lt;/h1&gt;
+        </code>
 <p>If you don't want to show a tagline, simply delete the code highlighted in red above from header.html and save.</p>
 
 <p>If you want to show a tagline, BUT would prefer your tagline to be something other than your site description, you can manually enter your Tagline into header.html in the same sort of way.</p>
 
 <p>For example, if I wanted to display my tagline - Standards Based Moodle Designs - I would edit the above code as follows:</p>
 
-               <code style="display:block; padding:10px; margin:10px; background:#f6f6f6; border:1px solid #eee;">
-               &lt;h1 class=&quot;headermain&quot;&gt;&lt;?php echo $heading ?&gt;&lt;br /&gt;&lt;span&gt;<span style="color:#ff0000;">Standards Based Moodle Designs</span>&lt;/span&gt;&lt;/h1&gt;
-               </code>
+        <code style="display:block; padding:10px; margin:10px; background:#f6f6f6; border:1px solid #eee;">
+        &lt;h1 class=&quot;headermain&quot;&gt;&lt;?php echo $heading ?&gt;&lt;br /&gt;&lt;span&gt;<span style="color:#ff0000;">Standards Based Moodle Designs</span>&lt;/span&gt;&lt;/h1&gt;
+        </code>
 
 <h3 style="margin-bottom:5px; margin-top:5px;">Licensing</h3>
 
index 671059f..7cfd03d 100644 (file)
 <div id="page">
 
 <!-- First, let's wrap the sides -->
-       <div id="wrapper-t">
-               <div id="wrapper-l">
-                       <div id="wrapper-r">
-                               <div id="wrapper-b">
-                               
-                               <!-- Now, let's cap the corners -->
-                               
-                                       <div id="wrapper-tl">
-                                               <div id="wrapper-tr">
-                                                       <div id="wrapper-bl">
-                                                               <div id="wrapper-br">
+    <div id="wrapper-t">
+        <div id="wrapper-l">
+            <div id="wrapper-r">
+                <div id="wrapper-b">
+                
+                <!-- Now, let's cap the corners -->
+                
+                    <div id="wrapper-tl">
+                        <div id="wrapper-tr">
+                            <div id="wrapper-bl">
+                                <div id="wrapper-br">
 
 <?php //Accessibility: 'headermain' is now H1, see theme/standard/styles_layout.css: .headermain
       if ($home) {  // This is what gets printed on the home page only
     <?php echo $OUTPUT->container_start('clearfix header-home'); ?>
 
     <div id="header-t">
-       <div id="header-r">
-               <div id="header-l">
-                       <div id="header-m" class="clearfix home">
-                               <h1 class="headermain"><?php echo $heading ?><br />
-                       <span><?php echo $COURSE->summary //Retrieves Site Description from Front Page -> Front Page Settings ?></span>
-                                               </h1>
-                     <div class="headermenu"><?php echo $menu ?></div>
-                               </div>
-               </div>
-       </div>
+        <div id="header-r">
+            <div id="header-l">
+                <div id="header-m" class="clearfix home">
+                    <h1 class="headermain"><?php echo $heading ?><br />
+                    <span><?php echo $COURSE->summary //Retrieves Site Description from Front Page -> Front Page Settings ?></span>
+                        </h1>
+                <div class="headermenu"><?php echo $menu ?></div>
+                  </div>
+            </div>
+        </div>
     </div>
 
     <?php echo $OUTPUT->container_end(); ?>
 ?>
     <?php echo $OUTPUT->container_start('clearfix header'); ?>
     <div id="header-t">
-       <div id="header-r">
-               <div id="header-l">
-                       <div id="header-m" class="clearfix">
-                       <h1 class="headermain"><?php echo $heading ?></h1>
-                   <div class="headermenu"><?php echo $menu ?></div>
-                                       </div>
-                               </div>
-                       </div>
-               </div>
+        <div id="header-r">
+            <div id="header-l">
+                <div id="header-m" class="clearfix">
+                <h1 class="headermain"><?php echo $heading ?></h1>
+                <div class="headermenu"><?php echo $menu ?></div>
+                    </div>
+                </div>
+            </div>
+        </div>
     <?php echo $OUTPUT->container_end(); ?>
 <?php } ?>
 <?php //Accessibility: breadcrumb trail/navbar now a DIV, not a table.
index ea8339f..8b77bfe 100755 (executable)
@@ -696,7 +696,7 @@ div.loginbox.twocolumns div.loginpanel {
 .weeks-format #right-column,
 .topics-format #left-column,
 .topics-format #right-column {
-       width: 15.5em;
+    width: 15.5em;
 }
 .weeks-format,
 .topics-format {
index 11d68a5..ce4bfc4 100644 (file)
@@ -313,12 +313,12 @@ table.calendarmonth tr td  {
 }
 
 #course-view .section td.content ul.section.img-text {
-       line-height: 22px;
+    line-height: 22px;
 }
 
 #course-view .section td.content ul.section.img-text li.activity.label {
-       line-height: 16px;
-       margin-bottom: 5px;
+    line-height: 16px;
+    margin-bottom: 5px;
 }
 
 .coursebox .info .name {
@@ -340,7 +340,7 @@ table.calendarmonth tr td  {
 }
 
 .glossarypost.continuous {
-       padding: 5px;
+    padding: 5px;
 }
 
 /***
index bb30eff..befba8a 100755 (executable)
@@ -19,8 +19,8 @@
         <h1 class="headermain"><?php echo $heading ?></h1>
         <div class="headermenu"><?php echo $menu ?></div>
     <?php echo $OUTPUT->container_end(); ?>
-       <div class="navbar clearfix">
-               &nbsp;
+    <div class="navbar clearfix">
+        &nbsp;
     </div>
 <?php } else if ($heading) {  // This is what gets printed on any other page with a heading
 ?>
index b0a0f5d..ab2be93 100755 (executable)
@@ -650,7 +650,7 @@ link
 .weeks-format #right-column,
 .topics-format #left-column,
 .topics-format #right-column {
-       width: 15.5em;
+    width: 15.5em;
 }
 .weeks-format,
 .topics-format {
index 37e532b..bbfe234 100644 (file)
@@ -887,7 +887,7 @@ table.message_search_results td {
  * mod/forum/view.php
  **/
 #mod-forum-view .unread{
-       background: #FFFF6B;
+    background: #FFFF6B;
 }
 
 /***