Skip to content

Commit

Permalink
fix issue 5 about CI tests failures
Browse files Browse the repository at this point in the history
  • Loading branch information
dcadiou committed Nov 25, 2022
1 parent 3a1e314 commit f137005
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions block_attestoodle.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function specialization() {
* @return stdClass The block contents.
*/
public function get_content() {
global $PAGE, $CFG, $OUTPUT, $USER, $DB, $COURSE;
global $CFG, $OUTPUT, $USER, $DB, $COURSE;

if ($this->content !== null) {
return $this->content;
Expand Down Expand Up @@ -189,7 +189,7 @@ public function get_content() {
</script>';
$this->content->text = $scrpt;

if ($student == 0 && $PAGE->user_is_editing() && $nb > 0) {
if ($student == 0 && $this->page->user_is_editing() && $nb > 0) {
$this->content->text .= '<div class="p-3 mb-2 bg-danger text-white">';
$this->content->text .= get_string('warning', 'block_attestoodle') . '</div>';
return $this->content;
Expand Down
3 changes: 1 addition & 2 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,11 @@

namespace block_attestoodle\privacy;

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

/**
* The block_attestoodle plugin does not store any data.
*
* @package tool_save_attestoodle
* @package block_attestoodle
* @copyright 2019 Le Mans University
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
Expand Down
3 changes: 1 addition & 2 deletions edit_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
* @copyright 2019 Marc Leconte <[email protected]>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die;

/**
* Expand setting block for attestoodle block.
Expand Down Expand Up @@ -56,4 +55,4 @@ protected function specific_definition($mform) {
get_string('displaycertificatelist', 'block_attestoodle'));
$mform->setDefault('config_displaycertificatelist', 1);
}
}
}
1 change: 0 additions & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;


/**
Expand Down

0 comments on commit f137005

Please sign in to comment.