Update application/core.php