Commit f7fe0475 authored by Clare Lenihan's avatar Clare Lenihan Committed by Clare Lenihan

changed so file upload works with ajaxlogin

parent 22417b28
......@@ -378,10 +378,15 @@ function auth_setup () {
else if ($sessionlogouttime > 0) {
// The session timed out
$USER->logout();
if (defined('JSON')) {
json_reply('global', get_string('sessiontimedoutreload'), 1);
}
if (defined('IFRAME')) {
$frame = '<html><head></head><body onload="parent.show_login_form(\'ajaxlogin_iframe\')"></body></html>';
header('Content-type: text/html');
echo $frame;
exit;
}
// If the page the user is viewing is public, inform them that they can
// log in again
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment