Skip to content

Fix unexpected MOODLE_INTERNAL check no side effects #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: MOODLE_403_STABLE
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions block_snapfeeds.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

use theme_snap\output\ce_render_helper;

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

/**
* Snap feeds block class.
*
Expand Down
2 changes: 0 additions & 2 deletions classes/api/block_replacer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

namespace block_snapfeeds\api;

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

/**
* Block replacer.
*
Expand Down
2 changes: 0 additions & 2 deletions classes/event_handlers.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
use block_snapfeeds\api\block_replacer;
use core\event\base;

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

/**
* Event handlers class.
*
Expand Down
2 changes: 0 additions & 2 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

namespace block_snapfeeds\privacy;

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

/**
* Privacy Subsystem for block_snapfeeds implementing null_provider.
*
Expand Down
2 changes: 0 additions & 2 deletions edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

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

/**
* Form for Snap feeds instances.
*
Expand Down
2 changes: 0 additions & 2 deletions tests/replace_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@

use block_snapfeeds\api\block_replacer;

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

class block_snapfeeds_replace_test extends advanced_testcase {

protected function setUp(): void {
Expand Down