Removed set_default() calls and fixed some function calls that seem to have changed in blocks library.
Removed set_default() calls and fixed some function calls that seem to have changed
in blocks library.

dilawar/moodle