]> git.mjollnir.org Git - moodle.git/commitdiff
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 703cebd68f3c8ef7923268cf92a615a4d4181263..b30b32fa63df61c68f38b15fcea48989aa379d8a 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 9162ab642183045eadb9527e45edac6aabf83122..2de694cb1e04e42889205f75246a1ab36edf41d2 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 069e22ee90c619b880723858c5ed4f7aad8d6e50..38c447388b5e750b0b68f60d9105a8ed0406da25 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 9b0d1dad2606d7a605748622a59016445c2f0140..bad7638de9ee8223ab30e622b562985ee9fbbee1 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 da53a827b85ada2470ff5544767f632c4b99a2f8..bcc79796169c6e3ce1abe6c7c661ff389b9b9e22 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 2cfbb9d1018ce941a6ef539aa83869a88dc93d26..b348425f7fdc723dcba2e960de33c55cba4d2426 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 3c7dd0383dacaad7883776ff88d0af7d7d678c9f..5e9f186b5cc26b9f9d804119308ed16ad1104f67 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 90e1ec7c8363b37d47d5605b83d7eb3506bb19e9..bbf6425ff674fcbd39778839c30ff3b341dce246 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 069fe9a2bb3c4920a633f747f34a59d1704e1670..9d2e84aff2b7b08805e78c09b3681b189531b353 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 60567f42f643a4bdf76ed57b874979898aa0ae96..92b7f3d4d4582301697fc8048f1586322e611f72 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 b2a50942e19ee618f48d4f3c72d2cb3956c116e6..417f463d781890ce957d9cb0a0dd11a3756544ca 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 e074621c513a0ad58c19db09ec974c3e1695241f..b91774220a32c58a218b19ef28d99d036745a3e0 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 db1e9134aca7fed81b09dbe0f5e7cbc6bd931c38..96cfbf13a48e8f8730e5dadb8b1bb11c14de88d7 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 449bde5c77ab73fcbd0f5b4c2f229627acf99d30..a9caedcbdc33929ec6b3e95b2411b85e7d7f0e88 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 b0c22dd227235516e7cd0aa8d1b234bbe6f43d7e..33a5153b0fbd51a30b7509598797f6b2147677d7 100644 (file)
                     $eventdata->fullmessage       = get_string('enrolmentnewuser', '', $a);
                     $eventdata->fullmessageformat = FORMAT_PLAIN;
                     $eventdata->fullmessagehtml   = '';
-                    $eventdata->smallmessage      = '';                        
+                    $eventdata->smallmessage      = '';
                     message_send($eventdata);
                 }
 
index af2af7d754667128ab52173ad4e4753b7a63fb3e..668ca3d84ae361166dd0a41dc38bbb0afd157518 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 016713d3d98fc5a7fc10cd172df8dca9824b3439..71b02fcefeb93ec997f5289d263c8f3c5d5ba521 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 ed82029046c6fa26a27195a3671de11e8bc86379..26e0f2ac8be6471ae694a968a4bf173fd566e8f4 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 07d8dca992c6a1af22ad5f072d0405aa6379d23b..27d0d128f13b47daf013fe1f2014785ee7da1580 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 25c2098ff6a40427c2c71f777869f7fc767bb893..b7d80a56dbac914826086f3093d8423f430dc971 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 3cd0aa4c19dd93ca01cabbdd34433b6b87bcd98d..6d89337c3bcd1d4f572997db6b1ce2de96549ac3 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 7f3a5005197151f640ed07f72ebc1286af6d6b60..7dd0611056ca8f2bb81362949ec6fcadb9ede437 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 bd97a7c245629d716f61bffb98d58f8ead3bc20f..b6b278440f5faf1641f4f6a27f5164f7db59eeb8 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 0be971c7b9d2725b79ffa13b9349f40ee7ff7853..b9e4a02e45f90eaeea64796ba87442ccea58e324 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 0f6688ab8219728db334ae14308276d06932c036..011961182dcd7f6b454bf668a6dd818bb2ecce01 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 6fd015f43e5dc62cf8d837dbfec658ef8e4304d4..1a4b63f650ed03f6a456fb34172b28ef1e614b80 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 aa9b2ea6f1964d4fc80176acfd553a831733a231..f6d8a322e9f385e86ff73ed2f0cd42e8c81959f9 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 e33b9483f2d75199235a6b1e7b6f7a9385c7bcff..c6c185496ec4e2c7a54902fd647d8de8d2bf020b 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 c734ba10ff1a194a1f85ec6b825866cc286e6473..d8621cd91007818c7d6f8ad277ef8ad45070700d 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 e042868c8e6abda417ae39341e7e6c097cf06dd0..096fac55b69a37a97bc45869d7a85c38cb2ffc2a 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 3dda7c7886abd2d375f5153c9c7ce42f3bbb73e3..f7d8cf7c892d8f0a9ef7541ccd3d8f0335e6a5bc 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 c81d97fb1e55f79a5c797b897d7c227688058871..8fc5536f8a3e0dc42bb06b19c029d8349427b529 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 2a23e6ce53962d97fea5ef86c5753e34edd83c0c..9127c01a19c311c808b93dac64f841669aecdee8 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 f0fab4af87a99d1a114fc77080269de0ff932a84..a5082d6159fa9010dcacf8186f24e46621b17d8d 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 c621bb4ba2409921a4e3568a383b7499680379d4..07d66f09dcbe63a6ab8ca910bc26330bf81510ca 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 23fd4cd3811f2a13e567c00e94c121a08f13c964..5c7d8895dcbf46aae4148bf35e3a8bbb100b67d7 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 8aceae401786c88b4278633f34e883de7e8f1b19..232ca23a7ce02d7a12264e08768ba94b4c67a4e9 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 93ccd3b796e8b2fac07fc4f988b6307eb10580c9..46bd50820003cc073109fd8163edfd76744afbe5 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 6dc9eb5af0e2465eb7acb2d5c8e1112c63a9b794..c8841fe99adc807f858245b18e5287c060da3275 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 da7e92fe4dea516db0fa76cf4835e0557cf259ce..f7cfb62834bf0df80dbabfbac509f16e6a3b7b8d 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 991c76de293e7e5b84f95f8e78902ebbe22401f8..5b90371d72d74a89d5c51035f26aa44e66af9cc0 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 ab34b86f34f0cb6968e86a48ab1ed162aa7e29ca..139b0de85eca54944028e3c73766217d7f4e51c4 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 c2c0ba3939ed6c0eda52dec5bc6a897504a338df..227dc9560b71ea3acb3c639c4305b61ee588a9e4 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 70511ce269d1a6a0868cf86fc89a26b26a2c0ce4..dcc515936cb663e264664ef4022ef11521c5f61a 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 ff6d46112f6566c24f176eb12b1fc84e98ea977c..d585c74c8c91729b08691da1b9ab051daadfd18b 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 d5e612fad3ff41cf4900f2e360af6652e10c2d7f..6b321a0e12fed7685de80fe0cceaf3c868963738 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 1af405148e3fcf1bf26eb88154045158221c4dc4..e4847960bd35fc83357ea47ab5a59b14e04e75e1 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 020428c43c09e5960d2d1bf81862ac9d0408cab1..3f93bd604cb929005147f3e233c578f9c0f8cddd 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 e67000942f2c03e10fb6996637db5012a408be7a..1931ed9db8b461c30d76de8025784a8e38bfac44 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 671059fdff2a6fd5271ac3082463867988da6ff1..7cfd03d7de17713c4919dc14e2ea654d992f2eca 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 ea8339f1021c1909d853422d21ef600d4866ef0b..8b77bfe1c804c854f1fe9005ffaefcedf06a8db2 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 11d68a5c7e88d2b72ffc2b1c0711c19b547aed3f..ce4bfc41fcd8ecd5362fe057e166c2bbe0678fe4 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 bb30eff6aef53a133086b7b9bb6e0290dff0d200..befba8afc53ff596e92ad1970810705e5e36a434 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 b0a0f5d1ad3c22afae3298e9ebc21e38c0fa300c..ab2be93b9ea23bb217eb48190229117eb08e9d1d 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 37e532b410a268191a8fa77cd37f7686483c48ba..bbfe234045f22029607f97a32ec2cad3944d3818 100644 (file)
@@ -887,7 +887,7 @@ table.message_search_results td {
  * mod/forum/view.php
  **/
 #mod-forum-view .unread{
-       background: #FFFF6B;
+    background: #FFFF6B;
 }
 
 /***