Skip to content

Commit 82bae77

Browse files
committed
Document preupload is now working.
1 parent 78eb809 commit 82bae77

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

src/Parameters/CreateMeetingParameters.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -440,12 +440,13 @@ public function getPresentationsAsXML()
440440
{
441441
$result = '';
442442
if (!empty($this->presentations)) {
443-
$xml = new \SimpleXMLElement('<xml/>');
444-
$modules = $xml->addChild('modules');
445-
$module = $modules->addChild('module');
443+
$xml = new \SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><modules/>');
444+
$module = $xml->addChild('module');
445+
$module->addAttribute('name', 'presentation');
446+
446447
foreach ($this->presentations as $nameOrUrl => $content) {
447-
if (!$this->presentations[$nameOrUrl]) {
448-
$module->addChild('document')->addAttribute('url', $nameOrUrl);
448+
if ($this->presentations[$nameOrUrl] === true) {
449+
$module->addChild('document')->addAttribute('url', urlencode($nameOrUrl));
449450
} else {
450451
$document = $module->addChild('document');
451452
$document->addAttribute('name', $nameOrUrl);

0 commit comments

Comments
 (0)