Skip to content
Snippets Groups Projects
Commit 46beb6f0 authored by Tim Schroeder's avatar Tim Schroeder
Browse files

Merge branch 'make-plugin-work-again-with-moodle-3' into 'testing4'

made plugin work again with moodle 3

See merge request moodle_l2p/moodle-mod_pdfannotator!208
parents 8e29b647 dbba863b
No related branches found
No related tags found
No related merge requests found
...@@ -23,6 +23,14 @@ defined('MOODLE_INTERNAL') || die; ...@@ -23,6 +23,14 @@ defined('MOODLE_INTERNAL') || die;
require_once($CFG->dirroot . '/mod/pdfannotator/locallib.php'); require_once($CFG->dirroot . '/mod/pdfannotator/locallib.php');
// Ugly hack to make 3.11 and 4.0 work seamlessly.
if (!defined('FEATURE_MOD_PURPOSE')) {
define('FEATURE_MOD_PURPOSE', 'mod_purpose');
}
if (!defined('MOD_PURPOSE_COMMUNICATION')) {
define('MOD_PURPOSE_COMMUNICATION', 'communication');
}
/** /**
* List of features supported in pdfannotator module * List of features supported in pdfannotator module
* @param string $feature FEATURE_xx constant for requested feature * @param string $feature FEATURE_xx constant for requested feature
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment