http://docs.moodle.org/dev/How_to_apply_a_patch this one this one this one this one this one this one How to apply a patch this one this one this one How to apply a patch this one How to apply a patch