mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'master' of https://github.com/fwsl/moodle
This commit is contained in:
commit
6ba920575f
1 changed files with 4 additions and 0 deletions
|
@ -47,6 +47,7 @@ switch ($action) {
|
||||||
// remove from enabled list
|
// remove from enabled list
|
||||||
$key = array_search($editor, $active_editors);
|
$key = array_search($editor, $active_editors);
|
||||||
unset($active_editors[$key]);
|
unset($active_editors[$key]);
|
||||||
|
add_to_config_log('editor_visibility', '1', '0', $editor);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'enable':
|
case 'enable':
|
||||||
|
@ -54,6 +55,7 @@ switch ($action) {
|
||||||
if (!in_array($editor, $active_editors)) {
|
if (!in_array($editor, $active_editors)) {
|
||||||
$active_editors[] = $editor;
|
$active_editors[] = $editor;
|
||||||
$active_editors = array_unique($active_editors);
|
$active_editors = array_unique($active_editors);
|
||||||
|
add_to_config_log('editor_visibility', '0', '1', $editor);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -66,6 +68,7 @@ switch ($action) {
|
||||||
$fsave = $active_editors[$key];
|
$fsave = $active_editors[$key];
|
||||||
$active_editors[$key] = $active_editors[$key + 1];
|
$active_editors[$key] = $active_editors[$key + 1];
|
||||||
$active_editors[$key + 1] = $fsave;
|
$active_editors[$key + 1] = $fsave;
|
||||||
|
add_to_config_log('editor_position', $key, $key + 1, $editor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -79,6 +82,7 @@ switch ($action) {
|
||||||
$fsave = $active_editors[$key];
|
$fsave = $active_editors[$key];
|
||||||
$active_editors[$key] = $active_editors[$key - 1];
|
$active_editors[$key] = $active_editors[$key - 1];
|
||||||
$active_editors[$key - 1] = $fsave;
|
$active_editors[$key - 1] = $fsave;
|
||||||
|
add_to_config_log('editor_position', $key, $key - 1, $editor);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue