diff --git a/classes/output/renderer.php b/classes/output/renderer.php index 36f7758..a7fdd3b 100644 --- a/classes/output/renderer.php +++ b/classes/output/renderer.php @@ -21,9 +21,7 @@ * @copyright 2023 The Open University * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ - -defined('MOODLE_INTERNAL') || die(); - + /** * Generates the output for oumatrix questions. * diff --git a/db/install.php b/db/install.php index aa6d8c6..baf624b 100644 --- a/db/install.php +++ b/db/install.php @@ -17,12 +17,11 @@ /** * Code to be executed after the plugin's database scheme has been installed is defined here. * - * @package qtype_oumatrix - * @category upgrade - * @copyright 2023 The Open University - * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @package qtype_oumatrix + * @copyright 2023 The Open University + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ - + /** * Custom code to be run on installing the plugin. */ diff --git a/db/uninstall.php b/db/uninstall.php index 3d6776f..b9ccaca 100644 --- a/db/uninstall.php +++ b/db/uninstall.php @@ -18,11 +18,10 @@ * Code that is executed before the tables and data are dropped during the plugin uninstallation. * * @package qtype_oumatrix - * @category upgrade * @copyright 2023 The Open University * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ - + /** * Custom uninstallation procedure. */ diff --git a/db/upgrade.php b/db/upgrade.php index 8348f03..ffaeb52 100644 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -17,14 +17,13 @@ /** * Plugin upgrade steps are defined here. * - * @package qtype_oumatrix - * @category upgrade - * @copyright 2023 The Open University - * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + * @package qtype_oumatrix + * @copyright 2023 The Open University + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ - + defined('MOODLE_INTERNAL') || die(); - + require_once(__DIR__.'/upgradelib.php'); /** diff --git a/db/upgradelib.php b/db/upgradelib.php index 6db773a..78c61b1 100644 --- a/db/upgradelib.php +++ b/db/upgradelib.php @@ -18,11 +18,10 @@ * Plugin upgrade helper functions are defined here. * * @package qtype_oumatrix - * @category upgrade * @copyright 2023 The Open University * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ - + /** * Helper function used by the upgrade.php file. */ diff --git a/lang/en/qtype_oumatrix.php b/lang/en/qtype_oumatrix.php index 928e8c1..004a54d 100644 --- a/lang/en/qtype_oumatrix.php +++ b/lang/en/qtype_oumatrix.php @@ -29,7 +29,7 @@ $string['answersingleno'] = 'Multiple response'; $string['answersingleyes'] = 'Single choice'; $string['grademethod'] = 'Marking mode'; -$string['grademethod_help'] = 'Standard (subpoints): each correct response in the body cells is worth one point, so students score a percentage of the total correct responses. +$string['grademethod_help'] = 'Standard (subpoints): each correct response in the body cells is worth one point, so students score a percentage of the total correct responses. All or nothing: students must get every response correct, otherwise they score zero.'; $string['gradepartialcredit'] = 'Give partial credit'; diff --git a/question.php b/question.php index 2f61f47..e6ff3db 100644 --- a/question.php +++ b/question.php @@ -22,8 +22,6 @@ * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -defined('MOODLE_INTERNAL') || die(); - // For a complete list of base question classes please examine the file // /question/type/questionbase.php. // diff --git a/settings.php b/settings.php index 902b8b2..7d3b5cf 100644 --- a/settings.php +++ b/settings.php @@ -18,13 +18,12 @@ * Plugin administration pages are defined here. * * @package qtype_oumatrix - * @category admin * @copyright 2023 The Open University * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ - + defined('MOODLE_INTERNAL') || die(); - + if ($hassiteconfig) { $settings = new admin_settingpage('qtype_oumatrix_settings', new lang_string('pluginname', 'qtype_oumatrix'));