fix enableajax problem in moodle 2.7