MDL-31011 fix report links in logs

This commit is contained in:
Petr Skoda 2012-01-15 19:02:08 +01:00 committed by kordan
parent 11323017d5
commit 6dd4f20261

View File

@ -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':