-
Bug
-
Resolution: Fixed
-
Blocker
-
4.5
-
MOODLE_405_STABLE
-
MOODLE_405_STABLE
-
MDL-83164-main -
The move of output classes in MDL-82183 seems to have broken the rendering of action_menu_link_primary. Attempting to do so gives:
Coding error detected, it must be fixed by a programmer: Can not render widget, renderer method ('render_link_primary') not found.
To reproduce, put this into a file in dirroot:
require_once ({}DIR{} . '/config.php');
require_login(SITEID);
$PAGE->set_url('/temp.php');$link = new \action_menu_link_primary(new moodle_url('https://moodle.org'), null,'Moodle');
echo $OUTPUT->header();
echo $OUTPUT->render($link);
echo $OUTPUT->footer();
This works as expected on Moodle 4.3 and gives a rendered link instead of a coding exception.
- is a regression caused by
-
MDL-82183 Break apart lib/output*
-
- Closed
-