Skip to content
Permalink
Browse files

Adding some extra debug output when a specific error() occurs to help…

… track

down a problem which has been reported in the forums (it is NOT a bug though).

THIS SHOULD BE REMOVED BEFORE 1.5 IS RELEASED!
  • Loading branch information...
defacer
defacer committed Jan 25, 2005
1 parent 538a221 commit 6bc5558ce6898e10e00f40e85fbdd35e66bcd0f2
Showing with 8 additions and 0 deletions.
  1. +8 −0 lib/pagelib.php
@@ -61,6 +61,14 @@ function page_map_class($type, $classname = NULL) {
}
if(!class_exists($mappings[$type])) {
print_object('Debug info - type:');
var_dump($type);
print_object('Debug info - classname:');
var_dump($classname);
print_object('Debug info - mappings:');
print_object($mappings);
print_object('Debug_backtrace():');
print_object(debug_backtrace());
error('Page class mapping for id "'.$type.'" exists but class "'.$mappings[$type].'" is not defined');
}

0 comments on commit 6bc5558

Please sign in to comment.
You can’t perform that action at this time.