mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'wip-mdl-36238' of git://github.com/rajeshtaneja/moodle
This commit is contained in:
commit
6167badf62
1 changed files with 5 additions and 0 deletions
|
@ -125,6 +125,11 @@ if (!empty($page)) {
|
|||
$stradministration = get_string('administration');
|
||||
$strreports = get_string('reports');
|
||||
|
||||
// Before we close session, make sure we have editing information in session.
|
||||
$adminediting = optional_param('adminedit', -1, PARAM_BOOL);
|
||||
if ($PAGE->user_allowed_editing() && $adminediting != -1) {
|
||||
$USER->editing = $adminediting;
|
||||
}
|
||||
session_get_instance()->write_close();
|
||||
|
||||
if (!empty($chooselog)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue