Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed MDL-11812, thanks to Alan Trick's report

  • Loading branch information...
commit 2b9cc5a96624302865ad4194c6af8b0e66dbabed 1 parent 363d415
whchuang authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/weblib.php
View
4 lib/weblib.php
@@ -3654,7 +3654,7 @@ function build_navigation($extranavlinks, $cm = null) {
if (is_object($cm)) {
if (!isset($cm->modname)) {
debugging('The field $cm->modname should be set if you call build_navigation with '.
- 'a $cm parameter. If you get $cm using get_coursemodule_from_instance or ',
+ 'a $cm parameter. If you get $cm using get_coursemodule_from_instance or '.
'get_coursemodule_from_id, this will be done automatically.', DEBUG_DEVELOPER);
if (!$cm->modname = get_field('modules', 'name', 'id', $cm->module)) {
error('Cannot get the module type in build navigation.');
@@ -3662,7 +3662,7 @@ function build_navigation($extranavlinks, $cm = null) {
}
if (!isset($cm->name)) {
debugging('The field $cm->name should be set if you call build_navigation with '.
- 'a $cm parameter. If you get $cm using get_coursemodule_from_instance or ',
+ 'a $cm parameter. If you get $cm using get_coursemodule_from_instance or '.
'get_coursemodule_from_id, this will be done automatically.', DEBUG_DEVELOPER);
if (!$cm->name = get_field($cm->modname, 'name', 'id', $cm->instance)) {
error('Cannot get the module name in build navigation.');
Please sign in to comment.
Something went wrong with that request. Please try again.