MDL-33720 navigation: Added debug noticed to old (deprecated) local plugin callback
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user