Commit Graph

13 Commits

Author SHA1 Message Date
David Mudrák 036c583800 MDL-69698 licenses: Do not cache the localised licenses fullnames
The localisation must happen only after loading the list of licenses
from cache so that the name is displayed in the current user's preferred
language, not in the language of the user who initiated the cache
rebuild.
2020-09-15 10:37:06 +02:00
Eloy Lafuente (stronk7) 432b9a9075 MDL-69521 core: Move all comments in code from 4.3 to 4.1 2020-09-08 18:59:46 +02:00
Jun Pataleta a996318c9d MDL-66911 files: Update $CFG->licenses when adding/deleting licenses
* When creating custom licenses, the list of active licenses
  ($CFG->licenses) also needs to be updated. Same when a custom license
  is being deleted.
2020-05-28 16:15:15 +08:00
Jun Pataleta 4eaa7269a6 MDL-66911 files: Format full name of custom licenses 2020-05-28 15:20:14 +08:00
Tom Dickman 4399e4759a MDL-45184 tool_licenses: Add custom licenses
This feature adds an admin tool for creating custom licenses.
Now custom licenses can be added and amended in Moodle, and the site
default can be set to a custom license.

Core licenses remain hard-coded and are uneditable, so they will always
require update within Moodle core updates, and maintain their
internationalisation through core language strings.

This also includes fundamental changes to the license API including
the addition of license caching and deprecation of no longer required
admin settings for license management.
2020-05-26 12:08:05 +10:00
Tim Hunt 5bcfd504df MDL-45618 Fix @since PHPdoc tags. 2014-05-19 17:03:04 +01:00
Wojciech Galiszek 8243f3ebb5 MDL-28250 license: Correct cc-nc url 2013-05-15 10:45:36 +01:00
Petr Skoda 6bdfef5da9 MDL-24321 switching to standard stdClass() 2010-09-21 08:54:01 +00:00
Petr Skoda 78bfb562a0 MDL-21249 improved php docs and adding direct access prevention in core libs 2010-07-25 13:35:05 +00:00
Dongsheng Cai ba74f517e6 MDL-21146, default license will be locked to prevent from disable, move site default license from frontpage to license config page 2010-04-09 19:40:23 +00:00
Petr Skoda f56af8884d MDL-21146 fixed install regression - copypasted the setting of active license setting from ugprade code 2010-04-06 18:52:38 +00:00
Dongsheng Cai d1d4813ff2 "MDL-21146, improve file license code" 2010-03-31 03:08:05 +00:00
Dongsheng Cai 1dce6261b7 "MDL-21146, adding file license support to repository api, first commit" 2010-03-29 03:39:08 +00:00