Merge branch 'wip-mdl-36238-m23' of git://github.com/rajeshtaneja/moodle into MOODLE_23_STABLE

This commit is contained in:
Sam Hemelryk
2012-11-28 11:41:35 +13:00
+5
View File
@@ -121,6 +121,11 @@ $strlogs = get_string('logs');
$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)) {