Skip to content
Browse files

Fix for bug 3637:

Certain obscure cases of using PHP accelerators (probably has to do with
OS and PHP version as well, but it's not certain) caused an error to be
displayed when importing data from "local pagelib" files with "debug" turned
on. The error was bogus, but error() stopped the page from being displayed.

Thanks to James P. Dugal the from University of Louisiana at Lafayette for
identifying and helping to solve the problem!
  • Loading branch information...
defacer committed Jul 20, 2005
1 parent c94bf7e commit 18e4e2d5c724a2888daac7a3d958b48e08f4a9b0
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/pagelib.php
@@ -104,7 +104,7 @@ function page_map_class($type, $classname = NULL) {
if (!class_exists($mappings[$type])) {
if (empty($classname) && !class_exists($mappings[$type])) {
if ($CFG->debug > 7) {
error('Page class mapping for id "'.$type.'" exists but class "'.$mappings[$type].'" is not defined');

0 comments on commit 18e4e2d

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