MDL-32941 external: core_course_get_categories() fixing.
commit20854c75f1dc4b14cc6a682d1c2b499a46eb4dae
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Fri, 4 May 2012 00:29:28 +0000 (4 02:29 +0200)
committerJerome Mouneyrac <jerome@moodle.com>
Thu, 17 May 2012 02:34:14 +0000 (17 10:34 +0800)
treefd0460c16ba18f8ff90bda7c50a5c65cbd0acf32
parentd4a17894efce63bfa0489b699d85d9259c0cc8e8
MDL-32941 external: core_course_get_categories() fixing.

This includes:

- Multiple coding violations.
- Better detection of criteria, avoiding troublemaker 0 != ''
- Minor formatting.
- Ordering by path always to cause excludes to work ok.
course/externallib.php