Plugin: H5P: Fix bug in calling order for object properties - refs #2667

pull/3388/head
Yannick Warnier 5 years ago
parent f80bd415c4
commit a24e3eeb8a
  1. 3
      plugin/h5p/list.php

@ -22,6 +22,7 @@ if (api_is_anonymous()) {
}
}
$plugin = H5PPlugin::create();
if (!$plugin->isEnabled(true)) {
api_not_allowed(true);
exit;
@ -42,8 +43,6 @@ $userId = $user['id'];
$vers = 6;
$plugin = H5PPlugin::create();
//wordsmatch
$id = isset($_GET['id']) ? (int) $_GET['id'] : 0;
$nodeType = isset($_GET['node_type']) ? Security::remove_XSS($_GET['node_type']) : '';

Loading…
Cancel
Save