/** * A hook that is used to initialise the Subject Prefix core * @param phpbb_hook $phpbb_hook The phpBB hook object * @return void */ public static function subject_prefix_init(&$hook) { // Load the phpBB class if (!class_exists('sp_phpbb')) { global $phpbb_root_path, $phpEx; require $phpbb_root_path . 'includes/mods/subject_prefix/sp_phpbb.' . $phpEx; sp_phpbb::init(); } // Load the Subject Prefix cache if (!class_exists('sp_cache')) { require PHPBB_ROOT_PATH . 'includes/mods/subject_prefix/sp_cache.' . PHP_EXT; } // Load the Subject Prefix core if (!class_exists('sp_core')) { require PHPBB_ROOT_PATH . 'includes/mods/subject_prefix/sp_core.' . PHP_EXT; sp_core::init(); } }