Skip to content
Browse files

MDL-36238 Blocks: Logs page close session write, so editing is set be…

…fore
  • Loading branch information...
1 parent 67ba008 commit d5b5becc18d8c869d4d3b39e3e7f2794eb901b1a @rajeshtaneja rajeshtaneja committed Nov 1, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 report/log/index.php
View
5 report/log/index.php
@@ -122,6 +122,11 @@
$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)) {

0 comments on commit d5b5bec

Please sign in to comment.
Something went wrong with that request. Please try again.