diff --git a/README.md b/README.md
index 8eb8776..7bf7b28 100644
--- a/README.md
+++ b/README.md
@@ -60,14 +60,14 @@ Icon by Dunja Speckner
Dragging of SVG elements by Peter Collingridge
This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU Affero General Public License as
-published by the Free Software Foundation, either version 3 of the
-License, or (at your option) any later version.
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 3 of the License, or
+(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU Affero General Public License for more details.
+GNU General Public License for more details.
-You should have received a copy of the GNU Affero General Public License
-along with this program. If not, see .
\ No newline at end of file
+You should have received a copy of the GNU General Public License
+along with this program. If not, see .
\ No newline at end of file
diff --git a/classes/mapworker.php b/classes/mapworker.php
index b53a747..54d8bad 100644
--- a/classes/mapworker.php
+++ b/classes/mapworker.php
@@ -54,7 +54,7 @@ public function __construct(string $svgcode, array $placestore) {
global $CFG;
$this->svgcode = $svgcode;
$this->placestore = $placestore;
- // This fixes a problem for loading SVG DTD on Windows locally
+ // This fixes a problem for loading SVG DTD on Windows locally.
if (strcasecmp(substr(PHP_OS, 0, 3), 'WIN') == 0) {
$dtd = '' . new \moodle_url('/mod/learningmap/pix/svg11.dtd');
} else {
diff --git a/db/upgrade.php b/db/upgrade.php
index 596ddd3..54f8b73 100644
--- a/db/upgrade.php
+++ b/db/upgrade.php
@@ -1,18 +1,18 @@
.
+// You should have received a copy of the GNU General Public License
+// along with Moodle. If not, see .
/**
* Upgrade functions for mod_learningmap
diff --git a/index.php b/index.php
index 4845e1f..c90f550 100644
--- a/index.php
+++ b/index.php
@@ -1,18 +1,18 @@
.
+// You should have received a copy of the GNU General Public License
+// along with Moodle. If not, see .
/**
* Index.php for mod_learningmap
diff --git a/lib.php b/lib.php
index 212a45e..7378d4c 100644
--- a/lib.php
+++ b/lib.php
@@ -23,6 +23,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
+defined('MOODLE_INTERNAL') || die();
+
require_once(__DIR__ . '/deprecatedlib.php');
/**
@@ -185,7 +187,8 @@ function learningmap_cm_info_view(cm_info $cm) : void {
if ($cm->showdescription == 1) {
$cm->set_content(learningmap_get_learningmap($cm), true);
$cm->set_extra_classes('label'); // ToDo: Add extra CSS.
- $PAGE->requires->js_call_amd('mod_learningmap/manual-completion-watch', 'init', ['coursemodules' => learningmap_get_place_cm($cm)]);
+ $PAGE->requires->js_call_amd('mod_learningmap/manual-completion-watch', 'init',
+ ['coursemodules' => learningmap_get_place_cm($cm)]);
}
}