MDL-41418 Administration: Page context should be set before setting page title
Merge branch 'wip-mdl-41418-m25' of git://github.com/rajeshtaneja/moodle into MOODLE_25_STABLE
MDL-41179 assign: Ensure a submission record exists for lock/unlock

Can't change the function params because it is changed in master already.
This will create a draft submission when a student is prevented from submitting
but that is a minor sideeffect and doesn't happen in master.