mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 07:56:06 +02:00
Merge branch 'MDL-44370-master' of git://github.com/ankitagarwal/moodle
This commit is contained in:
commit
0cc30f6fcf
@ -162,7 +162,12 @@ class restore_final_task extends restore_task {
|
||||
// rules from other tasks (activities) not belonging to one module instance (cmid = 0), so are restored here
|
||||
$rules = array_merge($rules, restore_logs_processor::register_log_rules_for_course());
|
||||
|
||||
// TODO: Other logs like 'calendar', 'upload'... will go here
|
||||
// Calendar rules.
|
||||
$rules[] = new restore_log_rule('calendar', 'add', 'event.php?action=edit&id={event}', '[name]');
|
||||
$rules[] = new restore_log_rule('calendar', 'edit', 'event.php?action=edit&id={event}', '[name]');
|
||||
$rules[] = new restore_log_rule('calendar', 'edit all', 'event.php?action=edit&id={event}', '[name]');
|
||||
|
||||
// TODO: Other logs like 'upload'... will go here
|
||||
|
||||
return $rules;
|
||||
}
|
||||
|
@ -67,7 +67,6 @@ function make_log_url($module, $url) {
|
||||
case 'login':
|
||||
case 'lib':
|
||||
case 'admin':
|
||||
case 'calendar':
|
||||
case 'category':
|
||||
case 'mnet course':
|
||||
if (strpos($url, '../') === 0) {
|
||||
@ -76,6 +75,9 @@ function make_log_url($module, $url) {
|
||||
$url = "/course/$url";
|
||||
}
|
||||
break;
|
||||
case 'calendar':
|
||||
$url = "/calendar/$url";
|
||||
break;
|
||||
case 'user':
|
||||
case 'blog':
|
||||
$url = "/$module/$url";
|
||||
|
Loading…
x
Reference in New Issue
Block a user