Fixed errors in deprecatedlib.php
Check that the function exists rather than relying on the Moodle version
Fix deprecated function use in index.php.
Merge pull request #28 from timhunt/master

Fix deprecated function use in index.php.
CONTRIB-4655: Add ability to set text width
Increased version number and the version required

The version required was increased because we now use context_*::instance
to retrieve contexts, rather than the deprecated functions get_context_*,
which was introduced in 2.2.
Increased version number and the version required

This was done because the previous commit that removed the
deprecated functions in index.php only works in 2.4 onwards.
Removed unnecessary checks since we increased the version required
Removed unnecessary setting of parameter in course module object

This caused a debugging message to be thrown in 2.6.
CONTRIB-4909 Altered the certificate_scan_image_dir function to be more robust
CONTRIB-4892 Fixed the email to others functionality
Removed use of the deprecated function 'notify'
Tidy up of lib.php
CONTRIB-4067 - Query user table for necessary fields only to avoid 'column ambiguously defined' error in Oracle
Bumped the version required as the last commit uses a function that was introduced in 2.6
CONTRIB-4960 - Ensure grade item exists to avoid 'Invalid argument supplied for foreach()' error

Thanks to David Balch for reporting this and providing a patch.
CONTRIB-4961 - Allow certificate types to specify if they want the grade to have a prefix or not

Thanks to David Balch for reporting this and providing a patch.
Increased version number
Replaced $module with $plugin in version.php
Updated version required