From 6dd4f20261c99f142dfe61bad460be98ea34ba56 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Sun, 15 Jan 2012 19:02:08 +0100 Subject: [PATCH] MDL-31011 fix report links in logs --- course/lib.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/course/lib.php b/course/lib.php index ae6bd994d40..2f87a51c7a4 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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':