mirror of
https://github.com/moodle/moodle.git
synced 2025-03-23 09:00:30 +01:00
Merge branch 'MDL-75014-before-session' of https://github.com/brendanheywood/moodle
This commit is contained in:
commit
79c81ab577
@ -826,6 +826,19 @@ if (empty($CFG->sessiontimeout)) {
|
||||
if (empty($CFG->sessiontimeoutwarning)) {
|
||||
$CFG->sessiontimeoutwarning = 20 * 60;
|
||||
}
|
||||
|
||||
// Allow plugins to callback just before the session is started.
|
||||
$pluginswithfunction = get_plugins_with_function('before_session_start', 'lib.php');
|
||||
foreach ($pluginswithfunction as $plugins) {
|
||||
foreach ($plugins as $function) {
|
||||
try {
|
||||
$function();
|
||||
} catch (Throwable $e) {
|
||||
debugging("Exception calling '$function'", DEBUG_DEVELOPER, $e->getTrace());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
\core\session\manager::start();
|
||||
|
||||
if (!empty($CFG->proxylogunsafe) || !empty($CFG->proxyfixunsafe)) {
|
||||
|
@ -55,6 +55,7 @@ Declaration is as follow:
|
||||
return the class name.
|
||||
* The function get_module_metadata() has been finally deprecated and can not be used anymore.
|
||||
* New DML driver method `$DB->sql_order_by_null` for sorting nulls sort nulls first when ascending and last when descending.
|
||||
* Allow plugins to callback on all pages just prior to the session start.
|
||||
|
||||
=== 4.0 ===
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user