Merge remote-tracking branch 'skodak/w03_MDL-31011_m22_loglinks' into MOODLE_22_STABLE

This commit is contained in:
Sam Hemelryk
2012-01-16 14:49:28 +08:00
+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':