From 1c1e7af4e24ae0c8f316747509294d0edf8aa2d0 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 21 Sep 2006 07:38:13 +0000 Subject: [PATCH] FIxed defaults for frontpage format --- lib/adminlib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.39.5