We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b268332 commit e6dd35bCopy full SHA for e6dd35b
h5peditor-ajax.class.php
@@ -118,10 +118,9 @@ public function action($endpoint) {
118
119
case H5PEditorEndpoints::CONTENT_HUB_METADATA_CACHE:
120
if (!$this->isHubOn()) return;
121
- global $user;
122
header('Cache-Control: no-cache');
123
header('Content-Type: application/json; charset=utf-8');
124
- print '{"success":true,"data":' . $this->core->getUpdatedContentHubMetadataCache($user->language) . '}';
+ print '{"success":true,"data":' . $this->core->getUpdatedContentHubMetadataCache(func_get_arg(1)) . '}';
125
break;
126
127
case H5PEditorEndpoints::LIBRARY_INSTALL:
0 commit comments