Skip to content

Commit

Permalink
Remove global user
Browse files Browse the repository at this point in the history
  • Loading branch information
icc committed Nov 4, 2020
1 parent 05aaaa7 commit fd3873f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions h5peditor-ajax.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,9 @@ public function action($endpoint) {

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:
Expand Down

0 comments on commit fd3873f

Please sign in to comment.