Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e8ae12
)
MDL-36238 Blocks: Logs page close session write, so editing is set before
author
Rajesh Taneja
<rajesh@moodle.com>
Thu, 1 Nov 2012 04:14:18 +0000
(12:14 +0800)
committer
Rajesh Taneja
<rajesh@moodle.com>
Thu, 1 Nov 2012 04:14:18 +0000
(12:14 +0800)
report/log/index.php
patch
|
blob
|
blame
|
history
diff --git
a/report/log/index.php
b/report/log/index.php
index
dbe5775
..
6c0e7ed
100644
(file)
--- a/
report/log/index.php
+++ b/
report/log/index.php
@@
-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)) {