Plugin: Zoom: Remove Heredoc syntax causing parse error - refs BT#17288

pull/3376/head
Yannick Warnier 5 years ago
parent 4aaaca2de0
commit 90da4ffa41
  1. 6
      plugin/zoom/lib/zoom_plugin.class.php

@ -1,5 +1,4 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
use Chamilo\PluginBundle\Zoom\API\CreatedRegistration; use Chamilo\PluginBundle\Zoom\API\CreatedRegistration;
@ -474,10 +473,7 @@ class ZoomPlugin extends Plugin
); );
$groupIdsSelect->setMultiple(true); $groupIdsSelect->setMultiple(true);
if (!empty($groups)) { if (!empty($groups)) {
$jsCode = sprintf( $jsCode = sprintf("getElementById('%s').parentNode.parentNode.parentNode.style.display = getElementById('%s').checked ? 'block' : 'none'",
<<<EOF
getElementById('%s').parentNode.parentNode.parentNode.style.display = getElementById('%s').checked ? 'block' : 'none'
EOF,
$groupIdsSelect->getAttribute('id'), $groupIdsSelect->getAttribute('id'),
$userRegistrationRadio->getelements()[1]->getAttribute('id') $userRegistrationRadio->getelements()[1]->getAttribute('id')
); );

Loading…
Cancel
Save