Update application/controllers/media.php