Remove unused PHP code fixing backward to Moodle 2.5. Fix for #209