]> git.mjollnir.org Git - moodle.git/commitdiff
Sorry, Eloy, my directions were wrong.
authormoodler <moodler>
Fri, 30 Apr 2004 12:10:46 +0000 (12:10 +0000)
committermoodler <moodler>
Fri, 30 Apr 2004 12:10:46 +0000 (12:10 +0000)
I've changed hiddentopics to hiddensections ...

course/edit.html
lang/en/help/coursehiddensections.html [new file with mode: 0644]
lang/en/help/coursehiddentopics.html [deleted file]
lang/en/moodle.php
lib/db/mysql.php
lib/db/mysql.sql
lib/db/postgres7.php
lib/db/postgres7.sql
version.php

index db59781d9e2dfe2fa08e4814d6084e2f91e3e9e7..3e05b664769dda2a37a77f57a5ddd95ff3c47856 100644 (file)
     </td>
 </tr>
 <tr valign=top>
-    <td align="right"><P><?php  print_string("hiddentopics") ?>:</td>
+    <td align="right"><P><?php  print_string("hiddensections") ?>:</td>
     <td><?php
     unset($choices);
-    $choices["0"] = get_string("hiddentopicscollapsed");
-    $choices["1"] = get_string("hiddentopicsinvisible");
-    choose_from_menu ($choices, "hiddentopics", $form->hiddentopics, "");
-    helpbutton("coursehiddentopics", get_string("hiddentopics")); ?>
+    $choices["0"] = get_string("hiddensectionscollapsed");
+    $choices["1"] = get_string("hiddensectionsinvisible");
+    choose_from_menu ($choices, "hiddensections", $form->hiddensections, "");
+    helpbutton("coursehiddensections", get_string("hiddensections")); ?>
     </td>
 </tr>
 <tr valign=top>
diff --git a/lang/en/help/coursehiddensections.html b/lang/en/help/coursehiddensections.html
new file mode 100644 (file)
index 0000000..624032e
--- /dev/null
@@ -0,0 +1,13 @@
+<p align="center"><b>Course hidden sections</b></p>
+
+<P>This option allows you to decide how the hidden sections in your course 
+   are displayed to students.</p>
+
+<p>By default, a small area is shown (in collapsed form, usually gray) to 
+   indicate where the hidden section is, though they still can not actually see 
+   the hidden activities and texts.  This is particularly useful 
+   in the Weekly format, so that non-class weeks are clear.</p>
+
+<p>If you choose, these can be completely hidden, so that students
+   don't even know sections of the course are hidden</p>
+
diff --git a/lang/en/help/coursehiddentopics.html b/lang/en/help/coursehiddentopics.html
deleted file mode 100644 (file)
index 9f504e5..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<p align="center"><b>Course hidden topics</b></p>
-
-<P>This option allows you to decide how the hidden topics in your course 
-   are going to be displayed to students.</p>
-
-<p>They can be completely hidden or shown in collapsed form.</p>
-
-<p>This setting only affects courses using the "Topics" format.</p>
-
index bc52c466cfb0a6adb40502fe4665c47959a47071..9885ad9cf21c260d179dc1c08dbb09b9853d58cb 100644 (file)
@@ -451,9 +451,9 @@ $string['helptext'] = 'How to write text';
 $string['helpwiki'] = 'How to write Wiki text';
 $string['helpwriting'] = 'Write carefully';
 $string['hide'] = 'Hide';
-$string['hiddentopics'] = 'Hidden Topics';
-$string['hiddentopicscollapsed'] = 'Hidden topics are shown in collapsed form';
-$string['hiddentopicsinvisible'] = 'Hidden topics are completely invisible';
+$string['hiddensections'] = 'Hidden Topics';
+$string['hiddensectionscollapsed'] = 'Hidden sections are shown in collapsed form';
+$string['hiddensectionsinvisible'] = 'Hidden sections are completely invisible';
 $string['hidepicture'] = 'Hide picture';
 $string['hits'] = 'Hits';
 $string['hitsoncourse'] = 'Hits on $a->coursename by $a->username';
index 30b11289c0e1f9ed2664e3dd23085f042839d684..132af2d864b584d1f65b4fe1165baa19a7cb7e43 100644 (file)
@@ -744,14 +744,14 @@ function main_upgrade($oldversion=0) {
         table_column("event", "", "format", "integer", "4", "unsigned", "0", "not null", "description");
     }
 
-    if ($oldversion < 2004042703) {
-        set_config("enablerssfeeds",0);
-    }
-
     if ($oldversion < 2004042900) {
         execute_sql(" ALTER TABLE `{$CFG->prefix}course` DROP `showrecent` ");
     }
 
+    if ($oldversion < 2004043001) {     /// Change hiddentopics to hiddensections
+        table_column("course", "hiddentopics", "hiddensections", "integer", "2", "unsigned", "0", "not null");
+    }
+
     return $result;
 
 }
index c779319292dbaafa2dba555c25fa351eb5b92fe7..32e6353e2c493a290cf35e5309ef319327c43b5f 100644 (file)
@@ -51,7 +51,7 @@ CREATE TABLE `prefix_course` (
   `maxbytes` int(10) unsigned NOT NULL default '0',
   `showreports` int(4) unsigned NOT NULL default '0',
   `visible` int(1) unsigned NOT NULL default '1',
-  `hiddentopics` int(1) unsigned NOT NULL default '0',
+  `hiddensections` int(2) unsigned NOT NULL default '0',
   `groupmode` int(4) unsigned NOT NULL default '0',
   `groupmodeforce` int(4) unsigned NOT NULL default '0',
   `lang` varchar(10) NOT NULL default '',
index 08ea6f0dccef730fb2fe91b0b77726173ba21bfd..a49247c5ede202185b491b42785a4a6d6c07ff57 100644 (file)
@@ -482,15 +482,16 @@ function main_upgrade($oldversion=0) {
     }
 
     if ($oldversion < 2004042701) {     /// Add hiddentopics field to control hidden topics behaviour
-        table_column("course", "", "hiddentopics", "integer", "1", "unsigned", "0", "not null", "visible");
+        #table_column("course", "", "hiddentopics", "integer", "1", "unsigned", "0", "not null", "visible");
+        #See 'hiddensections' further down
     }
 
     if ($oldversion < 2004042702) {     /// Add a format field for the description 
         table_column("event", "", "format", "integer", "4", "unsigned", "0", "not null", "description");
     }
 
-    if ($oldversion < 2004042703) {
-        set_config("enablerssfeeds",0);
+    if ($oldversion < 2004043001) {     /// Add hiddentopics field to control hidden topics behaviour
+        table_column("course", "", "hiddensections", "integer", "2", "unsigned", "0", "not null", "visible");
     }
 
     return $result;
index e64899fd3e4215eded4a1ce3c90a4373495d79df..15f61a0a28c07b52fe800465f30630dee061fc3e 100644 (file)
@@ -29,7 +29,7 @@ CREATE TABLE prefix_course (
    maxbytes integer NOT NULL default '0',
    showreports integer NOT NULL default '0',
    visible integer NOT NULL default '1',
-   hiddentopics integer NOT NULL default '0',
+   hiddensections integer NOT NULL default '0',
    groupmode integer NOT NULL default '0',
    groupmodeforce integer NOT NULL default '0',
    lang varchar(10) NOT NULL default '',
index 864b32bf7e3e43fca0e1f3b9f059354ab39e1fa3..7c6e53ace76c292000ec170b7879f0d103d2bdf0 100644 (file)
@@ -5,7 +5,7 @@
 // database to determine whether upgrades should
 // be performed (see lib/db/*.php)
 
-$version = 2004042900;   // The current version is a date (YYYYMMDDXX)
+$version = 2004043001;   // The current version is a date (YYYYMMDDXX)
 
 $release = "1.3 development";   // User-friendly version number