MDL-33536 navigation: hide hidden categories from the navbar

Conflicts:
	lib/navigationlib.php
MDL-42723: Hide and handle LDAP error when user not in context being checked

MDL-41304 only fixed the case when 'Search subcontext' is enabled. We need to
fix the case when it's not enabled too.

While silencing errors with an @ should be avoided if possible, there's no
other way to prevent the warnings in this case.
MDL-42672 blocks: warnings on /mod/xxx/index.php for frontpage course
Moodle release 2.4.7
MDL-42795 course: fixed param course in sql

course_sections has course field and not courseid, hence replaced it with course.
MDL-42043 theme: Use $theme instead of $OUTPUT for pix_url()

Conflicts:

	theme/afterburner/lib.php
MDL-42806 block_mentees: can only be docked if it has a valid title set.
Merge branch 'MDL-42043-24' of git://github.com/FMCorz/moodle into MOODLE_24_STABLE
NOBUG: convert tabs to whitespaces
MDL-38574 qtype chooser: quick fix to make it fit on-screen.

MDL-32729 will provide a better fix for this, but we may as well apply
this quick fix on stable branches.
MDL-40481 quiz responses report needs cols need text_sorting
MDL-42540 quiz manual grading should have setType
MDL-42598 quiz variant randomisation not random enough.

A student would get the same question variants (for example for a
calculated question) on their first attempt at both copies of a
duplicated quiz.
Merge branch 'MDL-40481_24' of git://github.com/timhunt/moodle into MOODLE_24_STABLE
Automatically generated installer lang files
Merge branch '42806-24' of git://github.com/samhemelryk/moodle into MOODLE_24_STABLE
Merge branch 'MDL-42540_24' of git://github.com/timhunt/moodle into MOODLE_24_STABLE
MDL-42839 MUC: Memcache server configuration too sensitive to whitespace
Merge branch 'wip-MDL-42672-m24' of git://github.com/marinaglancy/moodle into MOODLE_24_STABLE
Merge branch 'wip_24_mdl-42723' of https://github.com/iarenaza/moodle into MOODLE_24_STABLE