mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Rollback the previous change: I introduced a bug by mistake! :/
But the system is a bit... strange... shouldn't the "editing mode" flag be propagated in the session variables or something? It confused me having to click "Edit" a second time after I 'd just clicked it in the course view.
This commit is contained in:
parent
dfd479fd67
commit
ce557a6eac
1 changed files with 6 additions and 4 deletions
|
@ -20,10 +20,12 @@
|
|||
}
|
||||
|
||||
if (isteacheredit($course->id)) {
|
||||
if (isset($_GET['edit']) && $edit == "on") {
|
||||
$USER->groupsediting = true;
|
||||
} else {
|
||||
$USER->groupsediting = false;
|
||||
if (isset($_GET['edit'])) {
|
||||
if($edit == "on") {
|
||||
$USER->groupsediting = true;
|
||||
} else {
|
||||
$USER->groupsediting = false;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$USER->groupsediting = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue