Skip to content
Snippets Groups Projects
Commit fd3873fe authored by Frode Petterson's avatar Frode Petterson
Browse files

Remove global user

parent 05aaaa79
No related branches found
No related tags found
No related merge requests found
......@@ -118,10 +118,9 @@ class H5PEditorAjax {
case H5PEditorEndpoints::CONTENT_HUB_METADATA_CACHE:
if (!$this->isHubOn()) return;
global $user;
header('Cache-Control: no-cache');
header('Content-Type: application/json; charset=utf-8');
print '{"success":true,"data":' . $this->core->getUpdatedContentHubMetadataCache($user->language) . '}';
print '{"success":true,"data":' . $this->core->getUpdatedContentHubMetadataCache() . '}';
break;
case H5PEditorEndpoints::LIBRARY_INSTALL:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment