mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Removing the extra debug info now that bug 2431 was fixed.
I can't believe that this insignificant workaround actually solved the problem. This is most probably a bug with PHP and static initialization of array variables.
This commit is contained in:
parent
6d6125b22f
commit
bbcbc3f85e
@ -55,8 +55,6 @@ function page_map_class($type, $classname = NULL) {
|
|||||||
$mappings = array(
|
$mappings = array(
|
||||||
MOODLE_PAGE_COURSE => 'page_course'
|
MOODLE_PAGE_COURSE => 'page_course'
|
||||||
);
|
);
|
||||||
print_object('Debug info - initial mappings:');
|
|
||||||
var_dump($mappings);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!empty($type) && !empty($classname)) {
|
if(!empty($type) && !empty($classname)) {
|
||||||
@ -67,14 +65,6 @@ function page_map_class($type, $classname = NULL) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!class_exists($mappings[$type])) {
|
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');
|
error('Page class mapping for id "'.$type.'" exists but class "'.$mappings[$type].'" is not defined');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user