From d79c484618cd55495a0c99ce726ff628642e322c Mon Sep 17 00:00:00 2001 From: Daniil Fajnberg Date: Tue, 5 Mar 2024 12:52:24 +0100 Subject: [PATCH] Simplify adding new licenses in Readme via the built-in license manager --- README.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/README.md b/README.md index 2a9eff9..95adfc7 100644 --- a/README.md +++ b/README.md @@ -7,15 +7,7 @@ possible to download the files in a ZIP archive. Adding a new license ==================== -Adding a license is not straightforward in Moodle. - -1. You need to add the license to the database table "license" manually. For example: -INSERT INTO license (shortname, fullname, source, enabled, version) VALUES ('short', 'fullname', '', 0, 2016112100); -2. Add the english fullname to lang/en/license.php, e.g. append to the file: -$string['short'] = 'fullname'; -3. Specify other translations via Site administration -> Language -> Language customisation -4. Enable the new license on Site administration -> Plugins -> Licenses -> Manage licenses -5. If you want to change the ordering of the licenses, you need to modify the row with the name "licenses" in the database table "config". +Since Moodle version `3.9` you can add a custom license via Moodle's [license manager](https://docs.moodle.org/403/en/Licences#Licence_manager) in the Site administration. Expired files =============