parent
8a29796cab
commit
fdd2a618bc
|
@ -3862,19 +3862,11 @@ class H5PCore {
|
||||||
* Sync content with content hub
|
* Sync content with content hub
|
||||||
*
|
*
|
||||||
* @param integer $hubId Content hub id
|
* @param integer $hubId Content hub id
|
||||||
* @param string $token CSRF token
|
|
||||||
* @param string $exportPath Export path where .h5p for content can be found
|
* @param string $exportPath Export path where .h5p for content can be found
|
||||||
*
|
*
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function hubSyncContent($hubId, $token, $exportPath) {
|
public function hubSyncContent($hubId, $exportPath) {
|
||||||
if (!self::validToken('content_hub_token', $token)) {
|
|
||||||
$msg = $this->h5pF->t('Could not sync content because token was invalid. Please try again.');
|
|
||||||
$this->h5pF->setErrorMessage($msg);
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$headers = array(
|
$headers = array(
|
||||||
'Authorization' => $this->hubGetAuthorizationHeader(),
|
'Authorization' => $this->hubGetAuthorizationHeader(),
|
||||||
'Accept' => 'application/json',
|
'Accept' => 'application/json',
|
||||||
|
|
Loading…
Reference in New Issue