From: moodler Date: Thu, 21 Sep 2006 07:38:13 +0000 (+0000) Subject: FIxed defaults for frontpage format X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1c1e7af4e24ae0c8f316747509294d0edf8aa2d0;p=moodle.git FIxed defaults for frontpage format --- diff --git a/lib/adminlib.php b/lib/adminlib.php index e765dec08a..de1f5d2ba3 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -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 { ''; 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();