From 7ea3bbec32cbce4c2017b28be90e538dedb28f4d Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 12 Aug 2003 16:52:55 +0000 Subject: [PATCH] No point in offering the option for really big sites to have all the courses on the front page. --- admin/site.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/admin/site.html b/admin/site.html index a589a55adc..3f7a292a4c 100644 --- a/admin/site.html +++ b/admin/site.html @@ -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", ""); ?> -- 2.39.5