]> git.mjollnir.org Git - moodle.git/commitdiff
No point in offering the option for really big sites to have all the courses
authormoodler <moodler>
Tue, 12 Aug 2003 16:52:55 +0000 (16:52 +0000)
committermoodler <moodler>
Tue, 12 Aug 2003 16:52:55 +0000 (16:52 +0000)
on the front page.

admin/site.html

index a589a55adc856dd693d3f0cb252c78970548e160..3f7a292a4c0bec62cf58fcbf59fba175f4ca01ee 100644 (file)
            $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>