Rename core/function.php to xf/core/function.php