Commit 20b3d198 authored by Patrick Schmalstig's avatar Patrick Schmalstig
Browse files

Fixed MANTIS-5414 (Object factory using wrong class for upon_page_load)

parent ad821424
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1259,7 +1259,7 @@ function request_page($codename, $required, $zone = null, $page_type = null, $be
    $hooks = find_all_hooks('systems', 'upon_page_load');
    foreach ($hooks as $hook => $hook_dir) {
        require_code('hooks/systems/upon_page_load/' . filter_naughty_harsh($hook), false, $hook_dir == 'sources_custom');
        $ob = object_factory('upon_page_load' . filter_naughty_harsh($hook), true);
        $ob = object_factory('Hook_upon_page_load_' . filter_naughty_harsh($hook), true);
        if ($ob === null) {
            continue;
        }