MDL-31011 fix report links in logs

This commit is contained in:
Petr Skoda
2012-01-15 19:02:08 +01:00
parent 60e99097e4
commit d48f6068e0
+5
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':