Update AcademicPeriodsController.php