Skip to content

Commit

Permalink
Merge branch 'wip-MDL-30791-m21' of git://github.com/samhemelryk/mood…
Browse files Browse the repository at this point in the history
…le into MOODLE_21_STABLE
  • Loading branch information
stronk7 committed Dec 19, 2011
2 parents 0bc0394 + 4f9649a commit 12a1176
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/moodlelib.php
Expand Up @@ -7366,9 +7366,8 @@ function component_callback($component, $function, array $params = array(), $def
} }


if (!function_exists($function) and function_exists($oldfunction)) { if (!function_exists($function) and function_exists($oldfunction)) {
if ($type !== 'mod' and $type !== 'core') { // In Moodle 2.2 and greater this will result in a debugging notice however
debugging("Please use new function name $function instead of legacy $oldfunction"); // for 2.1+ we tolerate it.
}
$function = $oldfunction; $function = $oldfunction;
} }


Expand Down

0 comments on commit 12a1176

Please sign in to comment.