Skip to content

Commit

Permalink
MDL-68241 mod_h5pactivity: remove MOODLE_INTERNAL
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranrecio committed May 14, 2020
1 parent e28b406 commit 4d0241e
Show file tree
Hide file tree
Showing 13 changed files with 4 additions and 28 deletions.
2 changes: 0 additions & 2 deletions mod/h5pactivity/classes/local/attempt.php
Expand Up @@ -28,8 +28,6 @@
use stdClass;
use core_xapi\local\statement;

defined('MOODLE_INTERNAL') || die();

/**
* Class attempt for H5P activity
*
Expand Down
2 changes: 0 additions & 2 deletions mod/h5pactivity/classes/privacy/provider.php
Expand Up @@ -35,8 +35,6 @@
use core_privacy\local\request\writer;
use stdClass;

defined('MOODLE_INTERNAL') || die();

/**
* Privacy API implementation for the H5P activity plugin.
*
Expand Down
1 change: 1 addition & 0 deletions mod/h5pactivity/classes/xapi/handler.php
Expand Up @@ -35,6 +35,7 @@

defined('MOODLE_INTERNAL') || die();

global $CFG;
require_once($CFG->dirroot.'/mod/h5pactivity/lib.php');

/**
Expand Down
8 changes: 0 additions & 8 deletions mod/h5pactivity/db/upgrade.php
Expand Up @@ -39,14 +39,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

/**
* H5P activity module upgrade.
*
* @package mod_h5pactivity
* @copyright 2017 Stephen Bourget
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

/**
Expand Down
4 changes: 2 additions & 2 deletions mod/h5pactivity/lib.php
Expand Up @@ -22,11 +22,11 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die();

use mod_h5pactivity\local\manager;
use mod_h5pactivity\local\grader;

defined('MOODLE_INTERNAL') || die();

/**
* Checks if H5P activity supports a specific feature.
*
Expand Down
1 change: 1 addition & 0 deletions mod/h5pactivity/mod_form.php
Expand Up @@ -26,6 +26,7 @@

defined('MOODLE_INTERNAL') || die();

global $CFG;
require_once($CFG->dirroot.'/course/moodleform_mod.php');

/**
Expand Down
Expand Up @@ -28,8 +28,6 @@
use context_course;
use context_module;

defined('MOODLE_INTERNAL') || die();

/**
* H5P activity events test cases.
*
Expand Down
2 changes: 0 additions & 2 deletions mod/h5pactivity/tests/event/course_module_viewed_test.php
Expand Up @@ -28,8 +28,6 @@
use context_course;
use context_module;

defined('MOODLE_INTERNAL') || die();

/**
* H5P activity events test cases.
*
Expand Down
2 changes: 0 additions & 2 deletions mod/h5pactivity/tests/event/statement_received_test.php
Expand Up @@ -28,8 +28,6 @@
use context_course;
use context_module;

defined('MOODLE_INTERNAL') || die();

/**
* H5P activity events test cases.
*
Expand Down
2 changes: 0 additions & 2 deletions mod/h5pactivity/tests/generator_test.php
Expand Up @@ -25,8 +25,6 @@

use mod_h5pactivity\local\manager;

defined('MOODLE_INTERNAL') || die();

/**
* Genarator tests class for mod_h5pactivity.
*
Expand Down
2 changes: 0 additions & 2 deletions mod/h5pactivity/tests/local/attempt_test.php
Expand Up @@ -34,8 +34,6 @@
use \core_xapi\local\statement\item_result;
use stdClass;

defined('MOODLE_INTERNAL') || die();

/**
* Attempt tests class for mod_h5pactivity.
*
Expand Down
2 changes: 0 additions & 2 deletions mod/h5pactivity/tests/privacy_test.php
Expand Up @@ -25,8 +25,6 @@

namespace mod_h5pactivity\privacy;

defined('MOODLE_INTERNAL') || die();

use \core_privacy\local\request\approved_contextlist;
use \core_privacy\local\request\approved_userlist;
use \core_privacy\local\request\writer;
Expand Down
2 changes: 0 additions & 2 deletions mod/h5pactivity/tests/xapi/handler_test.php
Expand Up @@ -35,8 +35,6 @@
use context_module;
use stdClass;

defined('MOODLE_INTERNAL') || die();

/**
* Attempt tests class for mod_h5pactivity.
*
Expand Down

0 comments on commit 4d0241e

Please sign in to comment.