Skip to content

Commit

Permalink
Simplify adding new licenses in Readme via the built-in license manager
Browse files Browse the repository at this point in the history
  • Loading branch information
daniil-berg committed Mar 5, 2024
1 parent 7628c53 commit d79c484
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
=============
Expand Down

0 comments on commit d79c484

Please sign in to comment.