MDL-63578 assign: Better page titles
authorDamyon Wiese <damyon@moodle.com>
Wed, 9 Jan 2019 06:59:32 +0000 (14:59 +0800)
committerDamyon Wiese <damyon@moodle.com>
Thu, 31 Jan 2019 02:47:24 +0000 (10:47 +0800)
commitff9a0f8289b4bf6e8d5e873a93bba957c5e6783c
tree92ef296c9d02008a03a3e7e36356a59b3654977d
parent4c5b60a0f9e2efc2128f41dc0c8b5d06ea50cc48
MDL-63578 assign: Better page titles

Use the context function get_context_name() to set the page title. This will
change it from "Assignment" to "C1: Important foods to eat".

The get_context_name() for activity modules is updated to include the course short name (not the
name of the activity type).
mod/assign/lang/en/assign.php
mod/assign/locallib.php
mod/assign/renderer.php
mod/assign/tests/behat/page_titles.feature [new file with mode: 0644]