]> git.mjollnir.org Git - moodle.git/commitdiff
Merged new config variable from stable
authormoodler <moodler>
Mon, 30 Aug 2004 13:23:09 +0000 (13:23 +0000)
committermoodler <moodler>
Mon, 30 Aug 2004 13:23:09 +0000 (13:23 +0000)
admin/config.html
lang/en/moodle.php
lib/defaults.php

index dbe4db4aaced2525e8c4aeef014f37d555fd7afa..c2d99b3c21f8bf1d7c3c30df11e2f610f4f98f14 100644 (file)
     <?php print_string("configgdversion") ?>
     </td>
 </tr>
-<tr valign=top>
-    <td align=right><p>htmleditor:</td>
-    <td>
-    <?php
-       unset($options);
-       $options[0] = get_string("allownot");
-       $options[1] = get_string("allow");
-       choose_from_menu ($options, "htmleditor", $config->htmleditor, "", "", "");
-    ?>
-    </td>
-    <td>
-    <?php print_string("confightmleditor") ?>
-    </td>
-</tr>
 <tr valign=top>
     <td align=right><p>maxeditingtime:</td>
     <td>
     <?php print_string("configteacherassignteachers") ?>
     </td>
 </tr>
+<tr valign=top>
+    <td align=right><p>allusersaresitestudents:</td>
+    <td>
+    <?php
+       unset($options);
+       $options[0]  = get_string("no");
+       $options[1]  = get_string("yes");
+
+       choose_from_menu ($options, "allusersaresitestudents", $config->allusersaresitestudents, "", "", "");
+    ?>
+    </td>
+    <td>
+    <?php print_string("configallusersaresitestudents") ?>
+    </td>
+</tr>
 <tr valign=top>
     <td align=right><p>allowunenroll:</td>
     <td>
index 4ac96e208d4967548d91d76959ce301bc13ede62..5b78a00d37db92e5ad765c90fcb06e40b556e951 100644 (file)
@@ -143,11 +143,12 @@ $string['choosetheme'] = 'Choose theme';
 $string['chooseuser'] = 'Choose a user';
 $string['city'] = 'City/town';
 $string['cleaningtempdata'] = 'Cleaning temp data';
-$string['clicktochange'] = 'click to change';
+$string['clicktochange'] = 'Click to change';
 $string['closewindow'] = 'Close this window';
 $string['comparelanguage'] = 'Compare and edit current language';
 $string['complete'] = 'Complete';
 $string['configallowunenroll'] = 'If this is set \'Yes\', then students are allowed to unenroll themselves from courses whenever they like. Otherwise they are not allowed, and this process will be solely controlled by the teachers and administrators.';
+$string['configallusersaresitestudents'] = 'For activities on the front page of the site, should ALL users be considered as students?  If you answer \"Yes\", then any confirmed user account will be allowed to participate as a student in those activities.  If you answer \"No\", then only users who are already a participant in at least one course will be able to take part in those front page activities.';
 $string['configautologinguests'] = 'Should visitors be logged in as guests automatically when entering courses with guest access?';
 $string['configcachetext'] = 'For larger sites or sites that use text filters, this setting can really speed things up.  Copies of texts will be retained in their processed form for the time specified here.  Setting this too small may actually slow things down slightly,  but setting it too large may mean texts take too long to refresh (with new links, for example).';
 $string['configcountry'] = 'If you set a country here, then this country will be selected by default on new user accounts.  To force users to choose a country, just leave this unset.';
index 3a170e02e6a6eb2a16cc4150fd087c6d6fec8056..d902c4799c24977d80602835bb603e9b2f7c6fff 100644 (file)
@@ -4,10 +4,11 @@
 // It defines default values for any important configuration variables
 
    $defaults = array (
+       "allowunenroll"            =>  true,
+       "allusersaresitestudents"  =>  true,
        "auth"                     => 'email',
        "auth_pop3mailbox"         => 'INBOX',
        "autologinguests"          => 0,
-       "allowunenroll"            =>  true,
        "cachetext"                =>  60,
        "changepassword"           =>  true,
        "country"                  => "",