mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
David Mudrak
4868e95f58
Use defaultrequestcategory for new course from print_courses() if no other category is available
print_courses() produced PHP notice (Trying to get property of non-object) and generated an invalid button to create a new course in this case: (1) Passed paramater $category is 0 to display all categores (as in case of home page, for example) and (2) get_child_categories(0) returns more than one record. In such case, $categories is still a plain integer, does not contain ->id property and the called /course/edit.php exits with error. This patch uses $CFG->defaultrequestcategory as category id in this case.
MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions
MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions
MDL-21233 moodle_url improvemewnts, code simplification, more diagnostics; fixed several regressions
…
…
QUICK INSTALL ============= For the impatient, here is a basic outline of the installation process, which normally takes me only a few minutes: 1) Move the Moodle files into your web directory. 2) Create a single database for Moodle to store all it's tables in (or choose an existing database). 3) Visit your Moodle site with a browser, you should be taken to the install.php script, which will lead you through creating a config.php file and then setting up Moodle, creating an admin account etc. 4) Set up a cron task to call the file admin/cron.php every five minutes or so. For more information, see the INSTALL DOCUMENTATION: http://docs.moodle.org/en/Installing_Moodle Good luck and have fun! Martin Dougiamas, Lead Developer
Description
Languages
PHP
78.1%
JavaScript
14.6%
Gherkin
3.5%
CSS
1.7%
Mustache
1.6%
Other
0.4%