Skip to content

Commit 25af812

Browse files
committed
Apparently the etherpadlite server can crash with this under certain circumstances.
We have to investigate, maybe include it later as experimental. Delete Etherpad lite session(s) when Moodle user logs out (reverted from commit 678ef4c)
1 parent 38a9a77 commit 25af812

File tree

5 files changed

+0
-191
lines changed

5 files changed

+0
-191
lines changed

classes/event/session_deleted.php

Lines changed: 0 additions & 68 deletions
This file was deleted.

db/events.php

Lines changed: 0 additions & 34 deletions
This file was deleted.

eventslib.php

Lines changed: 0 additions & 83 deletions
This file was deleted.

lang/en/etherpadlite.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,4 @@
7272

7373
// view
7474
$string['summaryguest'] = 'You are logged in as guest. That\'s why you can only see the readonly version of this Pad. Reload the page to get new changes.';
75-
76-
// events
77-
$string['eventsessiondeleted'] = 'Etherpad lite session deleted';
78-
$string['eventsessiondeleted_desc'] = 'Etherpad lite session \'{$a->etherpadsessionid}\' of Moodle user \'{$a->userid}\' in etherpad instance \'{$a->etherpadinstance}\' deleted after logout of the Moodle user';
7975
?>

view.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@
102102
}
103103
$authorID = $author->authorID;
104104
//echo "The AuthorID is now $authorID\n\n";
105-
// Remember authorID for deleteSession event handler
106-
set_user_preference('mod_etherpadlite-authorID', $authorID);
107105
} catch (Exception $e) {
108106
// the pad already exists or something else went wrong
109107
//echo "\n\ncreateAuthor Failed with message: ". $e->getMessage();

0 commit comments

Comments
 (0)