mirror of
https://github.com/moodle/moodle.git
synced 2025-03-17 22:20:00 +01:00
MDL-33720 navigation: Added debug noticed to old (deprecated) local plugin callback
This commit is contained in:
parent
904673dd20
commit
22ba3f0809
@ -1431,6 +1431,7 @@ class global_navigation extends navigation_node {
|
||||
$function($this);
|
||||
} else if (function_exists($oldfunction)) {
|
||||
// We continue to support the old function name to ensure backwards compatability
|
||||
debugging("Deprecated local plugin navigation callback: Please rename '{$oldfunction}' to '{$function}'. Support for the old callback will be dropped after the release of 2.4", DEBUG_DEVELOPER);
|
||||
$oldfunction($this);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user