Permalink
Browse files

MDL-33720 navigation: Added debug noticed to old (deprecated) local p…

…lugin callback
  • Loading branch information...
1 parent 904673d commit 22ba3f08095ee6d7a382dfe912f0a867b7f52e08 Sam Hemelryk committed Jun 26, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/navigationlib.php
@@ -1431,6 +1431,7 @@ public function initialise() {
$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);
}
}

0 comments on commit 22ba3f0

Please sign in to comment.