MDL-33720 navigation: Added debug noticed to old (deprecated) local plugin callback

This commit is contained in:
Sam Hemelryk
2012-07-13 09:19:04 +12:00
parent 904673dd20
commit 22ba3f0809
+1
View File
@@ -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);
}
}