Permalink
Browse files

Merge branch 'wip-MDL-30791-m21' of git://github.com/samhemelryk/mood…

…le into MOODLE_21_STABLE
  • Loading branch information...
2 parents 0bc0394 + 4f9649a commit 12a1176976bab005ea3c89d78c5c17dff0aac489 @stronk7 stronk7 committed Dec 19, 2011
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/moodlelib.php
View
5 lib/moodlelib.php
@@ -7366,9 +7366,8 @@ function component_callback($component, $function, array $params = array(), $def
}
if (!function_exists($function) and function_exists($oldfunction)) {
- if ($type !== 'mod' and $type !== 'core') {
- debugging("Please use new function name $function instead of legacy $oldfunction");
- }
+ // In Moodle 2.2 and greater this will result in a debugging notice however
+ // for 2.1+ we tolerate it.
$function = $oldfunction;
}

0 comments on commit 12a1176

Please sign in to comment.