Commit 2f297ff4 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1950220: Call session_cleanup() correctly for mobile



Change-Id: Icce22cae8acaffeb3b8bebd282bcfaf5f9317473
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
(cherry picked from commit 4572a5eb)
parent 2c7388dd
......@@ -63,7 +63,7 @@ class mobileapi_profileicon_webservice_server extends webservice_base_server {
throw new WebserviceAccessException(get_string('servicenotallowed', 'module.mobileapi'));
}
$this->load_function_info();
$this->session_cleanup();
// If it hasn't crashed by now, they're good!
return true;
}
......@@ -77,7 +77,6 @@ class mobileapi_profileicon_webservice_server extends webservice_base_server {
$server = new mobileapi_profileicon_webservice_server();
$server->can_user_download_via_webservice();
$server->session_cleanup();
switch(param_alphanumext('wsfunction')) {
case 'module_mobileapi_get_user_profileicon':
......
Supports Markdown
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