mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
MDL-31011 fix report links in logs
This commit is contained in:
parent
11323017d5
commit
6dd4f20261
@ -49,6 +49,11 @@ define('MOD_CLASS_RESOURCE', 1);
|
||||
function make_log_url($module, $url) {
|
||||
switch ($module) {
|
||||
case 'course':
|
||||
if (strpos($url, 'report/') === 0) {
|
||||
// there is only one report type, curse reports are deprecated
|
||||
$url = "/$url";
|
||||
break;
|
||||
}
|
||||
case 'file':
|
||||
case 'login':
|
||||
case 'lib':
|
||||
|
Loading…
x
Reference in New Issue
Block a user