Rename core/hook.php to xf/core/hook.php