print_header("$course->shortname: $title", "$course->fullname $heading", "$shortname $navigation", $focus, $meta,
$cache, $button, $menu, $usexml, $bodytags);
}
-
-
+
+
function print_footer ($course=NULL, $usercourse=NULL) {
// Can provide a course object to make the footer contain a link to
echo " }\";\n";
echo "config.killWordOnPaste = ";
- echo(!$CFG->editorkillword) ? "false":"true";
+ echo(empty($CFG->editorkillword)) ? "false":"true";
echo ";\n";
echo "config.fontname = {\n";
- $fontlist = explode(";", $CFG->editorfontlist);
+ $fontlist = isset($CFG->editorfontlist) ? explode(';', $CFG->editorfontlist) : array();
$i = 1; // Counter is used to get rid of the last comma.
$count = count($fontlist); // Otherwise IE doesn't load the editor.
$i++;
}
echo "};";
- if($CFG->editorspelling && !empty($CFG->aspellpath)) {
+ if(!empty($CFG->editorspelling) && !empty($CFG->aspellpath)) {
print_speller_code($usehtmleditor=true);
}
}