forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'moodle:main' into MDL-76665
- Loading branch information
Showing
176 changed files
with
3,711 additions
and
2,483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
issueNumber: MDL-66151 | ||
notes: | ||
core_role: | ||
- message: | | ||
Move all session management to the \core\session\manager class. | ||
This removes the dependancy to use the "sessions" table. | ||
Session management plugins (like redis) now need to inherit | ||
the base \core\session\handler class which implements | ||
SessionHandlerInterface and override methods as required. | ||
The following methods in \core\session\manager have been deprecated: | ||
* kill_all_sessions use destroy_all instead | ||
* kill_session use destroy instead | ||
* kill_sessions_for_auth_plugin use destroy_by_auth_plugin instead | ||
* kill_user_sessions use destroy_user_sessions instead | ||
type: improved |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
issueNumber: MDL-75850 | ||
notes: | ||
core_files: | ||
- message: | | ||
The following are the changes made: | ||
- New hook after_file_created | ||
- In the \core_files\file_storage, new additional param $notify (default is true) added to: | ||
- ::create_file_from_storedfile() | ||
- ::create_file_from_pathname() | ||
- ::create_file_from_string() | ||
- ::create_file() | ||
If true, it will trigger the after_file_created hook to re-create the image. | ||
type: improved |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# core_role (subsystem) Upgrade notes | ||
|
||
## 4.5dev+ | ||
|
||
### Added | ||
|
||
- Move all session management to the \core\session\manager class. | ||
This removes the dependancy to use the "sessions" table. | ||
Session management plugins (like redis) now need to inherit | ||
the base \core\session\handler class which implements | ||
SessionHandlerInterface and override methods as required. | ||
The following methods in \core\session\manager have been deprecated: | ||
* kill_all_sessions use destroy_all instead | ||
* kill_session use destroy instead | ||
* kill_sessions_for_auth_plugin use destroy_by_auth_plugin instead | ||
* kill_user_sessions use destroy_user_sessions instead | ||
|
||
For more information see [MDL-66151](https://tracker.moodle.org/browse/MDL-66151) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
// This file is part of Moodle - http://moodle.org/ | ||
// | ||
// Moodle is free software: you can redistribute it and/or modify | ||
// 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. | ||
// | ||
// Moodle 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 General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with Moodle. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
/** | ||
* Configure the settings for fileredact. | ||
* | ||
* @package core_admin | ||
* @copyright Meirza <[email protected]> | ||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later | ||
*/ | ||
|
||
defined('MOODLE_INTERNAL') || die(); | ||
|
||
if ($hassiteconfig) { | ||
if (!$ADMIN->locate('fileredact')) { | ||
$ADMIN->add('server', new admin_category('fileredact', get_string('fileredact', 'core_files'))); | ||
} | ||
// Get settings from each service. | ||
$servicesdir = "{$CFG->libdir}/classes/fileredact/services/"; | ||
$servicefiles = glob("{$servicesdir}*_service.php"); | ||
foreach ($servicefiles as $servicefile) { | ||
$servicename = basename($servicefile, '_service.php'); | ||
$classname = "\\core\\fileredact\\services\\{$servicename}_service"; | ||
if (class_exists($classname)) { | ||
$fileredactsettings = new admin_settingpage($servicename, new lang_string("fileredact:$servicename", 'core_files')); | ||
call_user_func("{$classname}::add_settings", $fileredactsettings); | ||
$ADMIN->add('fileredact', $fileredactsettings); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.