Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master #3

Open
wants to merge 10 commits into
base: MOODLE_30_STABLE
Choose a base branch
from
11 changes: 7 additions & 4 deletions locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,11 @@ function aconnect_get_recordings($aconnect, $folderscoid, $sourcescoid) {
if (!is_null($domnode)) {
$meetingdetail = $innernodelist->item($x);

// Check if the SCO item is a recording or uploaded document. We only want to display recordings
if (!is_null($meetingdetail->getElementsByTagName('duration')->item(0))) {
// Check if the SCO item is a recording or uploaded document. We only want to display recordings. Recordings are identified as an 'icon' attribute with a value of 'archive' in <sco> element, e.g. <sco icon='archive'>

$icontype = $meetingdetail->attributes->getNamedItem('icon');

if (!is_null($icontype) && $icontype->nodeValue === 'archive') {

$j = (int) $domnode->nodeValue;
$value = (!is_null($meetingdetail->getElementsByTagName('name'))) ?
Expand Down Expand Up @@ -668,8 +671,8 @@ function aconnect_get_recordings($aconnect, $folderscoid, $sourcescoid) {

$recordings[$j]->modified = (string) $value;

$value = (!is_null($meetingdetail->getElementsByTagName('duration'))) ?
$meetingdetail->getElementsByTagName('duration')->item(0)->nodeValue : '';
$value = (!is_null($meetingdetail->attributes->getNamedItem('duration'))) ?
$meetingdetail->attributes->getNamedItem('duration')->nodeValue : '';

$recordings[$j]->duration = (string) $value;

Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
* @copyright (C) 2015 Remote Learner.net Inc http://www.remote-learner.net
*/

$plugin->version = 2015111000;
$plugin->version = 2017051100;
$plugin->requires = 2015101600;
$plugin->cron = 0;
$plugin->component = 'mod_adobeconnect';
$plugin->maturity = MATURITY_STABLE;
$plugin->release = '3.0.0.0';
$plugin->release = '3.0.0.1';