No point in offering the option for really big sites to have all the courses

on the front page.
This commit is contained in:
moodler
2003-08-12 16:52:55 +00:00
parent 3b3ab94282
commit 7ea3bbec32
+4
View File
@@ -35,6 +35,10 @@
$options = array("0" => get_string("frontpagenews"),
"1" => get_string("frontpagecourselist"),
"2" => get_string("frontpagecategorynames"));
if (count_records("course") > 200) {
unset($options[1]);
$form->frontpage = 2;
}
choose_from_menu ($options, "frontpage", "$form->frontpage", "");
?>
</td>