]> git.mjollnir.org Git - moodle.git/commitdiff
Merge from stable branch: Convert tabs to spaces in files where there were only a...
authortjhunt <tjhunt>
Wed, 17 May 2006 16:47:44 +0000 (16:47 +0000)
committertjhunt <tjhunt>
Wed, 17 May 2006 16:47:44 +0000 (16:47 +0000)
24 files changed:
admin/langdoc.php
admin/modules.php
blocks/admin/block_admin.php
blocks/glossary_random/config_instance.html
blocks/online_users/block_online_users.php
blog/preferences.html
blog/preferences.php
calendar/lib.php
course/import/activities/mod.php
course/importstudents.html
course/request.php
enrol/authorize/db/postgres7.php
enrol/imsenterprise/enrol.php
enrol/imsenterprise/importnow.php
filter/tex/latex.php
lib/db/mysql.php
lib/db/mysql.sql
lib/db/postgres7.php
lib/db/postgres7.sql
lib/filterlib.php
lib/statslib.php
lib/weblib.php
login/index.php
mod/data/field/picture/mod.html

index d9f6b3e526b7c6e66f00cee1e51990952847ae97..604df51739ef764edc6dbfa31ef99913046a49b1 100755 (executable)
@@ -186,7 +186,7 @@ $langdir/$currentfile")."</font></p>";
 
         echo "<textarea rows=\"$fileeditorrows\" cols=\"$fileeditorcols\" name=\"filedata\">\n";
         if (file_exists("$langdir/$currentfile")) {
-           echo htmlspecialchars(file_get_contents("$langdir/$currentfile"));
+            echo htmlspecialchars(file_get_contents("$langdir/$currentfile"));
         } else {
             echo ($filetemplate);
         }
index 24d426c620312a1c63505427f62e3c0a585ccc6d..c88787af78dd31bacd1aaae5992ab5fc30c5eadd 100644 (file)
 
     foreach ($modules as $module) {
         $strmodulename = get_string("modulename", "$module->name");
-       // Deal with modules which are lacking the language string
-       if ($strmodulename == '[[modulename]]') {
-           $strmodulename = $module->name;
-       }
+        // Deal with modules which are lacking the language string
+        if ($strmodulename == '[[modulename]]') {
+            $strmodulename = $module->name;
+        }
         $modulebyname[$strmodulename] = $module;
     }
     ksort($modulebyname);
index 7a33c01031867bfcae8a53f50b1ae278066e36ca..0837740f0b0c504c928de35875c392ef71bc625f 100644 (file)
@@ -113,7 +113,7 @@ class block_admin extends block_list {
             $fullname = fullname($USER, true);
             $editmyprofile = '<a title="'.$fullname.'" href="'.$CFG->wwwroot.'/user/edit.php?id='.$USER->id.'&amp;course='.$this->instance->pageid.'">'.get_string('editmyprofile').'</a>';
             if (empty($USER->description)) {
-               //Accessibility: replace non-standard <blink> with CSS (<a> makes title visible in IE).
+                //Accessibility: replace non-standard <blink> with CSS (<a> makes title visible in IE).
                 $text = get_string('profile').' '.get_string('missingdescription');
                 $this->content->items[]= $editmyprofile.' <a title="'.$text.'" class="useredit blink">*<span class="accesshide">'.$text.'</span></a>';
             } else {
@@ -211,7 +211,7 @@ class block_admin extends block_list {
             $editmyprofile = '<a title="'.$fullname.'" href="'.$CFG->wwwroot.'/user/edit.php?id='.
                              $USER->id.'&amp;course='.$this->instance->pageid.'">'.get_string('editmyprofile').'</a>';
             if (empty($USER->description)) {
-               //Accessibility: replace non-standard <blink> with CSS (<a> makes title visible in IE).
+                //Accessibility: replace non-standard <blink> with CSS (<a> makes title visible in IE).
                 $text = get_string('profile').' '.get_string('missingdescription');
                 $this->content->items[]= $editmyprofile.' <a title="'.$text.'" class="useredit blink">*<span class="accesshide">'.$text.'</span></a>';
             } else {
index 43056d4f6b0da181fb7025cc152011340b0297cf..ed2e08f856e2eddef513dac03d901cf6fd2011c5 100644 (file)
 <td><input type="text" name="title" size="50" value="<?php p($this->config->title) ?>" /></td>
 </tr>
 
-<tr valign=top>        
+<tr valign=top>
 <td align=right><?php print_string("select_glossary","block_glossary_random") ?>:</td>
 <td><?php choose_from_menu($glossaries,"glossary",$this->config->glossary) ?></td>
 </tr>
 
-<tr valign=top>        
+<tr valign=top>
 <td align=right><?php print_string("refresh","block_glossary_random") ?>:</td>
 <td><input type="text" name="refresh" size="5" value="<?php p($this->config->refresh) ?>" /></td>
 </tr>
 
-<tr valign=top>        
-<td align=right><?php print_string("type","block_glossary_random") ?>:</td>    
+<tr valign=top>
+<td align=right><?php print_string("type","block_glossary_random") ?>:</td>
 <td><?php
      choose_from_menu($type, "type", $this->config->type, "");
      helpbutton("",get_string("type","block_glossary_random"),"moodle",true,false,get_string("typehelp","block_glossary_random"));
      ?></td>
 </tr> 
 
-<tr valign=top>        
-<td align=right><?php print_string("showconcept","block_glossary_random") ?>:</td>     
+<tr valign=top>
+<td align=right><?php print_string("showconcept","block_glossary_random") ?>:</td>
 <td>
 <input type="hidden" name="showconcept" value="0" />
 <input type="checkbox" name="showconcept" value="1" <?php if(!empty($this->config->showconcept)) echo 'checked="checked"'; ?> /></td>
index a6ccfa36e0f39b160ff478b14985021a90a4edfc..be9b96263e9620ca14fdb67133f67d084a62ec28 100644 (file)
@@ -110,11 +110,11 @@ class block_online_users extends block_base {
         //Now, we have in users, the list of users to show
         //Because they are online
         if (!empty($users)) {
-               //Accessibility: Don't want 'Alt' text for the user picture; DO want it for the envelope/message link (existing lang string).
-               //Accessibility: Converted <div> to <ul>, inherit existing classes & styles.
-               $this->content->text .= "<ul class='list'>\n";
+            //Accessibility: Don't want 'Alt' text for the user picture; DO want it for the envelope/message link (existing lang string).
+            //Accessibility: Converted <div> to <ul>, inherit existing classes & styles.
+            $this->content->text .= "<ul class='list'>\n";
             foreach ($users as $user) {
-               $this->content->text .= '<li class="listentry">';
+                $this->content->text .= '<li class="listentry">';
                 $timeago = format_time(time() - max($user->timeaccess, $user->lastaccess)); //bruno to calculate correctly on frontpage 
                 $this->content->text .= print_user_picture($user->id, $this->instance->pageid, $user->picture, 16, true).' ';
                 $this->content->text .= '<a href="'.$CFG->wwwroot.'/user/view.php?id='.$user->id.'&amp;course='.$this->instance->pageid.'" title="'.$timeago.'">'.$user->fullname.'</a>';
index 7d7805713d7aa1170a0fdcede0dc0060e7a06b85..1195b6eacc046d9a666ec3bd86ade3395cfc14e8 100755 (executable)
@@ -8,7 +8,7 @@
 </tr>
 <tr>
     <td colspan="2" align="center">
-       <input type="submit" value="<?php print_string("savechanges"); ?>" />
+    <input type="submit" value="<?php print_string("savechanges"); ?>" />
     <input type="button" value="<?php print_string('cancel'); ?>" onclick="javascript:history.go(-1)" /></td>
 </tr>
 </table>
index 07f51c6d1592c857a9b1b6fd3ec799df7c5ae888..5dc2fd752302c8ad89e277ced78aa1be9e0c72c0 100755 (executable)
@@ -29,7 +29,7 @@
 
 /// If data submitted, then process and store.
 
-       if ($post = data_submitted()) {
+    if ($post = data_submitted()) {
 
         $pagesize = optional_param('pagesize', 10, PARAM_INT);
         if ($pagesize < 1 ) {
@@ -54,7 +54,7 @@
 
     print_simple_box_start('center', '', '');
 
-       include('./preferences.html');
+    include('./preferences.html');
     print_simple_box_end();
 
     print_footer();
index 84c5e414e9c5d36703917921005209192e680b59..fe5c126537b76b86fbe1b07fddb4d6f8de1b40cf 100644 (file)
@@ -241,9 +241,9 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y
             
             //Accessibility: functionality moved to calendar_get_popup.
             if($display->thismonth && $day == $d) {
-               $popup = calendar_get_popup(true, $events[$eventid]->timestart, $popupcontent);
+                $popup = calendar_get_popup(true, $events[$eventid]->timestart, $popupcontent);
             } else {
-               $popup = calendar_get_popup(false, $events[$eventid]->timestart, $popupcontent);
+                $popup = calendar_get_popup(false, $events[$eventid]->timestart, $popupcontent);
             } 
 
             // Class and cell content
@@ -279,15 +279,15 @@ function calendar_get_mini($courses, $groups, $users, $cal_month = false, $cal_y
         }
 
         // Special visual fx for today
-        //Accessibility: hidden text for today, and popup.     
+        //Accessibility: hidden text for today, and popup.
         if($display->thismonth && $day == $d) {
             $class .= ' today';
             $today = get_string('today', 'calendar').' '.userdate(time(), get_string('strftimedayshort'));
                         
             if(! isset($eventsbyday[$day])) {
-                $class .= ' eventnone';                
-               $popup = calendar_get_popup(true, false);
-               $cell = '<a href="#" '.$popup.'>'.$day.'</a>';
+                $class .= ' eventnone';
+                $popup = calendar_get_popup(true, false);
+                $cell = '<a href="#" '.$popup.'>'.$day.'</a>';
             }
             $cell = '<span class="accesshide">'.$today.' </span>'.$cell;
         }
@@ -327,13 +327,13 @@ function calendar_get_popup($is_today, $event_timestart, $popupcontent='') {
     if (false === $event_timestart) {
         $popupcaption .= userdate(time(), get_string('strftimedayshort'));
         $popupcontent = get_string('eventnone', 'calendar');
-               
+
     } else {
         $popupcaption .= get_string('eventsfor', 'calendar', userdate($event_timestart, get_string('strftimedayshort')));
     }
     $popupcontent = str_replace("'", "\'", htmlspecialchars($popupcontent));
     $popup = 'onmouseover="return overlib(\''.$popupcontent.'\', CAPTION, \''.$popupcaption.'\');" onmouseout="return nd();"';
-    return $popup;     
+    return $popup;
 }
 
 function calendar_get_upcoming($courses, $groups, $users, $daysinfuture, $maxevents, $fromtime=0) {
index b204685b64d43e9417e8bc02c41f1a81fdad027e..8cdcd09fa697b0362334b5560180297b4610dec2 100644 (file)
@@ -15,7 +15,7 @@
     $strimport = get_string("importdata");
  
     $tcourseids = '';
-        
     if ($teachers = get_records_select('user_teachers', "userid = $USER->id AND editall = 1",'','id,course')) {
         foreach ($teachers as $teacher) {
             if ($teacher->course != $course->id && $teacher->course != SITEID){
@@ -25,7 +25,7 @@
     }
 
     $taught_courses = array();
-       if (!empty($tcourseids)) {
+    if (!empty($tcourseids)) {
         $tcourseids = substr($tcourseids,0,-1);
         $taught_courses = get_records_list('course', 'id', $tcourseids);
     }
index ed9b879dd66b4d6ad558a730fdbc2e8975cd2e15..92c4c1c82074bc0f99e68f9e3e3481754749e1f3 100644 (file)
@@ -53,7 +53,7 @@
                   }
                   else {
                       foreach ($courses as $course) {
-                         echo "<option value=\"$course->id\">".course_format_name($course,60)."</option>\n";
+                      echo "<option value=\"$course->id\">".course_format_name($course,60)."</option>\n";
                       }
                   }
               }
index d46b100c25bc1587eb13dde5e6a5e3b6e583a355..a4d9fd2a36aa3ab28ddf68950e668f8fba2f4450 100644 (file)
@@ -36,7 +36,7 @@
             $form = stripslashes_safe($form);
         }
 
-       // !! no db access using data from $form beyond this point !!
+        // !! no db access using data from $form beyond this point !!
     }
 
 //    print_simple_box(get_string('courserequestintro'),'center');
index 6ff76a047e4df0266f0aa7673798858c8cbc40c0..a04f167515e50d8b2206e3371caf79a65fdf2ae8 100644 (file)
@@ -93,10 +93,10 @@ function enrol_authorize_upgrade($oldversion=0) {
     }
 
     if ($oldversion < 2006010200) { // rename an_review_day
-       if (isset($CFG->an_review_day)) {
-           set_config('an_capture_day', $CFG->an_review_day);
-           delete_records('config', 'name', 'an_review_day');
-       }
+        if (isset($CFG->an_review_day)) {
+            set_config('an_capture_day', $CFG->an_review_day);
+            delete_records('config', 'name', 'an_review_day');
+        }
     }
 
     if ($oldversion < 2006020100) { // rename an_cutoff_hour and an_cutoff_min to an_cutoff
@@ -115,11 +115,6 @@ function enrol_authorize_upgrade($oldversion=0) {
         table_column('enrol_authorize', 'transid', 'transid', 'integer', '10', 'unsigned', '0', 'not null');
     }
 
-    if ($oldversion < 2006050400) { // Create transid indexes for backup & restore speed.
-        execute_sql("CREATE INDEX {$CFG->prefix}enrol_authorize_transid_idx ON {$CFG->prefix}enrol_authorize(transid);", false);
-        execute_sql("CREATE INDEX {$CFG->prefix}enrol_authorize_refunds_transid_idx ON {$CFG->prefix}enrol_authorize_refunds(transid);", false);
-    }
-
     return $result;
 }
 
index d32ba81bdf10f2cc0f9494a166f189a20a1ff884..1d9e3d502b784c14b23416d8126de0b22b660b4e 100644 (file)
@@ -529,7 +529,7 @@ function process_person_tag($tagcontents){
     }
     if($CFG->enrol_imssourcedidfallback && trim($person->username)==''){
       // This is the point where we can fall back to useing the "sourcedid" if "userid" is not supplied
-        // NB We don't use an "elseif" because the tag may be supplied-but-empty
+      // NB We don't use an "elseif" because the tag may be supplied-but-empty
         $person->username = $person->idnumber;
     }
     if(preg_match('{<email>(.*?)</email>}is', $tagcontents, $matches)){
index cd8a0c52898697f3da1d25c3b51dae2bf8e8caef..9efc92f6e40739ddeb845d4cda97b271182b0cc5 100644 (file)
@@ -3,20 +3,20 @@ require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
 require_login();
 
 if (!$site = get_site()) {
-       redirect("index.php");
+    redirect("index.php");
 }
 
 if (!isadmin()) {
-       error("Only the admin can use this page");
+    error("Only the admin can use this page");
 }
 
 /// get language strings
 $str = get_strings(array('enrolments', 'users', 'administration', 'settings'));
 
 print_header("$site->shortname: $str->enrolments", "$site->fullname",
-                         "<a href=\"../../admin/index.php\">$str->administration</a> -> 
-                          <a href=\"../../admin/users.php\">$str->users</a> -> 
-                          $str->enrolments -> IMS import");
+              "<a href=\"../../admin/index.php\">$str->administration</a> -> 
+               <a href=\"../../admin/users.php\">$str->users</a> -> 
+               $str->enrolments -> IMS import");
 
 require_once('enrol.php');
 
index e9a65179fc1c64ffe94544416af6cc3dbada62c6..d00c94b3a10ee26d31a09eeff9e846b43cfe558e 100644 (file)
             unlink( "{$this->temp_dir}/$filename.gif" );
             unlink( "{$this->temp_dir}/$filename.aux" );
             unlink( "{$this->temp_dir}/$filename.log" );
-               return;
+            return;
         }
 
     }
index 1eecbde7e9961524418204a270560a81411e3cda..f5ddb843d15ced16a8ac9a83ab860537f132d8b9 100644 (file)
@@ -1542,7 +1542,7 @@ function main_upgrade($oldversion=0) {
           `uniquelogins` int(10) unsigned NOT NULL default 0,
           PRIMARY KEY (`id`),
           KEY `courseid` (`courseid`),
-          KEY `timeend` (`timeend`)     
+          KEY `timeend` (`timeend`)
        );");
 
         modify_database("","CREATE TABLE prefix_stats_weekly (
@@ -1561,7 +1561,7 @@ function main_upgrade($oldversion=0) {
           `uniquelogins` int(10) unsigned NOT NULL default 0,
           PRIMARY KEY (`id`),
           KEY `courseid` (`courseid`),
-          KEY `timeend` (`timeend`)     
+          KEY `timeend` (`timeend`)
        );");
 
         modify_database("","CREATE TABLE prefix_stats_monthly (
@@ -1580,7 +1580,7 @@ function main_upgrade($oldversion=0) {
           `uniquelogins` int(10) unsigned NOT NULL default 0,
           PRIMARY KEY (`id`),
           KEY `courseid` (`courseid`),
-          KEY `timeend` (`timeend`)     
+          KEY `timeend` (`timeend`)
        );");
 
         modify_database("","CREATE TABLE prefix_stats_user_daily (
@@ -1596,7 +1596,7 @@ function main_upgrade($oldversion=0) {
           KEY `courseid` (`courseid`),
           KEY `userid` (`userid`),
           KEY `roleid` (`roleid`),
-          KEY `timeend` (`timeend`)    
+          KEY `timeend` (`timeend`)
        );");
 
         modify_database("","CREATE TABLE prefix_stats_user_weekly (
@@ -1612,7 +1612,7 @@ function main_upgrade($oldversion=0) {
           KEY `courseid` (`courseid`),
           KEY `userid` (`userid`),
           KEY `roleid` (`roleid`),
-          KEY `timeend` (`timeend`)    
+          KEY `timeend` (`timeend`)
        );");
 
         modify_database("","CREATE TABLE prefix_stats_user_monthly (
@@ -1628,7 +1628,7 @@ function main_upgrade($oldversion=0) {
           KEY `courseid` (`courseid`),
           KEY `userid` (`userid`),
           KEY `roleid` (`roleid`),
-          KEY `timeend` (`timeend`)    
+          KEY `timeend` (`timeend`)
        );");
          
     }
index 7292c32b742ed8cbc281e00a05c4b48568e06d80..016ea654e6f0ee97608eac8104f8174458029f48 100644 (file)
@@ -89,7 +89,7 @@ CREATE TABLE `prefix_course` (
   PRIMARY KEY  (`id`),
   KEY `category` (`category`),
   KEY `idnumber` (`idnumber`),
-  KEY `shortname` (`shortname`)         
+  KEY `shortname` (`shortname`)
 ) TYPE=MyISAM;
 # --------------------------------------------------------
 
@@ -776,7 +776,7 @@ CREATE TABLE prefix_stats_weekly (
    `uniquelogins` int(10) unsigned NOT NULL default 0,
    PRIMARY KEY (`id`),
    KEY `courseid` (`courseid`),
-   KEY `timeend` (`timeend`)    
+   KEY `timeend` (`timeend`)
 );
 
 CREATE TABLE prefix_stats_monthly (
@@ -795,7 +795,7 @@ CREATE TABLE prefix_stats_monthly (
    `uniquelogins` int(10) unsigned NOT NULL default 0,
    PRIMARY KEY (`id`),
    KEY `courseid` (`courseid`),
-   KEY `timeend` (`timeend`)    
+   KEY `timeend` (`timeend`)
 );
 
 CREATE TABLE prefix_stats_user_daily (
@@ -811,7 +811,7 @@ CREATE TABLE prefix_stats_user_daily (
    KEY `courseid` (`courseid`),
    KEY `userid` (`userid`),
    KEY `roleid` (`roleid`),
-   KEY `timeend` (`timeend`)   
+   KEY `timeend` (`timeend`)
 );
 
 CREATE TABLE prefix_stats_user_weekly (
@@ -827,7 +827,7 @@ CREATE TABLE prefix_stats_user_weekly (
    KEY `courseid` (`courseid`),
    KEY `userid` (`userid`),
    KEY `roleid` (`roleid`),
-   KEY `timeend` (`timeend`)   
+   KEY `timeend` (`timeend`)
 );
 
 CREATE TABLE prefix_stats_user_monthly (
@@ -843,7 +843,7 @@ CREATE TABLE prefix_stats_user_monthly (
    KEY `courseid` (`courseid`),
    KEY `userid` (`userid`),
    KEY `roleid` (`roleid`),
-   KEY `timeend` (`timeend`)   
+   KEY `timeend` (`timeend`)
 );
 
 #
index 60c823c6f92af2dfeed46a64f9fc54995ca88501..58e4bf5dcdf567b029aed3d51450623836448262 100644 (file)
@@ -881,9 +881,9 @@ function main_upgrade($oldversion=0) {
     if ($oldversion < 2005012500) { // add new table for meta courses.
         /*
         modify_database("","CREATE TABLE prefix_meta_course (
-                id SERIAL primary key,
-                parent_course integer NOT NULL,
-                child_course integer NOT NULL
+             id SERIAL primary key,
+             parent_course integer NOT NULL,
+             child_course integer NOT NULL
              );");
 
         modify_database("","CREATE INDEX prefix_meta_course_parent_idx ON prefix_meta_course (parent_course);");
@@ -897,9 +897,9 @@ function main_upgrade($oldversion=0) {
         execute_sql("ALTER TABLE {$CFG->prefix}course DROP COLUMN meta_course",false); // drop silently
         
         modify_database("","CREATE TABLE prefix_course_meta (
-                id SERIAL primary key,
-                parent_course integer NOT NULL,
-                child_course integer NOT NULL
+             id SERIAL primary key,
+             parent_course integer NOT NULL,
+             child_course integer NOT NULL
              );");
 
         modify_database("","CREATE INDEX prefix_course_meta_parent_idx ON prefix_course_meta (parent_course);");
index 6641a3ceca445f0eb6fb319b219aa1af3753a567..99c3723bfb457a8a6eb4108ccce5845f80d98b91 100644 (file)
@@ -86,9 +86,9 @@ CREATE TABLE prefix_course_display (
 CREATE INDEX prefix_course_display_courseuserid_idx ON prefix_course_display (course,userid);
 
 CREATE TABLE prefix_course_meta (
-       id SERIAL primary key,
-       parent_course integer NOT NULL,
-       child_course integer NOT NULL
+    id SERIAL primary key,
+    parent_course integer NOT NULL,
+    child_course integer NOT NULL
 );
 
 CREATE INDEX prefix_course_meta_parent_idx ON prefix_course_meta (parent_course);
index 00972bff2093604f844341c16ed4d466f3604cc6..a57070367c75826fe7c6ab5fbac0d1185fb8a4ce 100644 (file)
@@ -110,7 +110,7 @@ function filter_phrases ($text, &$link_array, $ignoretagsopen=NULL, $ignoretagsc
         }
 
     /// All this work has to be done ONLY it it hasn't been done before
-       if (!$linkobject->work_calculated) {
+    if (!$linkobject->work_calculated) {
             if (!isset($linkobject->hreftagbegin) or !isset($linkobject->hreftagend)) {
                 $linkobject->work_hreftagbegin = '<span class="highlight"';
                 $linkobject->work_hreftagend   = '</span>';
index 8b8a5ebb9c019f30e90f8ccbdbe246b1c2d4299a..2361056a54c54a4d3b794dd9f27d7d0c93a45b43 100644 (file)
@@ -846,7 +846,7 @@ function stats_fix_zeros($stats,$timeafter,$timestr,$line2=true,$line3=false) {
 
     $timestr = str_replace('user_','',$timestr); // just in case.
     $fun = 'stats_get_base_'.$timestr;
-       
+    
     $now = $fun();
 
     $times = array();
@@ -907,7 +907,7 @@ function stats_check_uptodate($courseid=0) {
     global $CFG;
 
     if (empty($courseid)) {
-       $courseid = SITEID;
+        $courseid = SITEID;
     }
 
     $latestday = stats_get_start_from('daily');
index 41ec08cdc8d1a5c718f239168aa846136e861ce4..56cc2a3ecf55b96500e10ac391f21fd290be80a3 100644 (file)
@@ -285,7 +285,7 @@ function match_referer($goodreferer = '') {
     if (empty($goodreferer)) {
         $goodreferer = qualified_me();
         // try to remove everything after ? because POST url may contain GET parameters (SID rewrite, etc.)
-           $pos = strpos($goodreferer, '?');
+        $pos = strpos($goodreferer, '?');
         if ($pos !== FALSE) {
             $goodreferer = substr($goodreferer, 0, $pos);
         }
@@ -2460,8 +2460,8 @@ function print_navigation ($navigation) {
 
    if ($navigation) {
        //Accessibility: breadcrumb links now in a list, &raquo; replaced with image.
-          $nav_text = get_string('youarehere','access');
-          echo '<h2 class="accesshide">'.$nav_text.",</h2><ul>\n";
+       $nav_text = get_string('youarehere','access');
+       echo '<h2 class="accesshide">'.$nav_text.",</h2><ul>\n";
        if (! $site = get_site()) {
            $site->shortname = get_string('home');
        }
index d287cf2e79c074dfce8f19de96f05e45d2b0d0c5..50a091b4380fc616c05bab8e74cd0e604bc74a4f 100644 (file)
         // Handles the case of another Moodle site linking into a page on this site
         include($CFG->dirroot.'/login/weblinkauth.php');
         if (function_exists(weblink_auth)) {
-               $user = weblink_auth($SESSION->wantsurl);
+            $user = weblink_auth($SESSION->wantsurl);
         }
         if ($user) {
-               $frm->username = $user->username;
+            $frm->username = $user->username;
         } else {
             $frm = data_submitted($loginurl);
         }
index a5ef9274a08a51c45c7b8ec7a3c93dda0c0c9f42..5def7328c1ab3f1c1300ce4f063e2774c273b85c 100755 (executable)
@@ -52,7 +52,7 @@
             <?php
                 $course->maxbytes = get_field('course', 'maxbytes', 'id', $this->data->course);
                 $choices = get_max_upload_sizes($CFG->maxbytes, $course->maxbytes);
-                   choose_from_menu ($choices, "param3", $this->field->param3, "");
+                choose_from_menu ($choices, "param3", $this->field->param3, "");
             ?>
         </td>
     </tr>