]> git.mjollnir.org Git - moodle.git/commitdiff
FIxed defaults for frontpage format
authormoodler <moodler>
Thu, 21 Sep 2006 07:38:13 +0000 (07:38 +0000)
committermoodler <moodler>
Thu, 21 Sep 2006 07:38:13 +0000 (07:38 +0000)
lib/adminlib.php

index e765dec08a4ea2e2af3e89b3c4aae9ff16dc0767..de1f5d2ba34f8efa473a8f627ab748b6695ea9db 100644 (file)
@@ -1506,7 +1506,7 @@ class admin_setting_courselist_frontpage extends admin_setting_configselect {
 
     function get_setting() {
         global $CFG;
-        return (isset($CFG->{$this->name}) ? explode(',', $CFG->{$this->name}) : NULL);
+        return (isset($CFG->{$this->name}) ? explode(',', $CFG->{$this->name}) : ',1,,');
     }
 
     function write_setting($data) {
@@ -1641,7 +1641,7 @@ class admin_setting_special_frontpagedesc extends admin_setting {
                    '<td>';
 
         ob_start();  // double-check the number of columns below... might overrun some screen resolutions
-        print_textarea($usehtmleditor, 20, 40, 0, 0, 's_' . $this->name, $currentsetting);
+        print_textarea($usehtmleditor, 15, 60, 0, 0, 's_' . $this->name, $currentsetting);
 
         if ($usehtmleditor) {
             use_html_editor();