Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/MOODLE_29_DEV' into MOODLE_29_ST…
Browse files Browse the repository at this point in the history
…ABLE
  • Loading branch information
amirlevykal committed Dec 31, 2015
2 parents 450e5fe + f8419c9 commit 8700b50
Show file tree
Hide file tree
Showing 21 changed files with 38 additions and 44 deletions.
4 changes: 2 additions & 2 deletions filter/kaltura/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
*/
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2015101809;
$plugin->version = 2015120909;
$plugin->release = 'Kaltura release 4.0.08';
$plugin->requires = 2014050800;
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = array(
'local_kaltura' => 2015101809
'local_kaltura' => 2015120909
);
4 changes: 2 additions & 2 deletions lib/editor/atto/plugins/kalturamedia/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2015101809; // The current plugin version (Date: YYYYMMDDXX).
$plugin->version = 2015120909; // The current plugin version (Date: YYYYMMDDXX).
$plugin->release = 'Kaltura release 4.0.08';
$plugin->requires = 2014050800; // Requires this Moodle version.
$plugin->component = 'atto_kalturamedia'; // Full name of the plugin (used for diagnostics).
$plugin->dependencies = array(
'local_kaltura' => 2015101809
'local_kaltura' => 2015120909
);
4 changes: 2 additions & 2 deletions lib/editor/tinymce/plugins/kalturamedia/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2015101809;
$plugin->version = 2015120909;
$plugin->release = 'Kaltura release 4.0.08';
// Required Moodle version.
$plugin->requires = 2014050800;
// Full name of the plugin (used for diagnostics).
$plugin->component = 'tinymce_kalturamedia';
$plugin->dependencies = array(
'local_kaltura' => 2015101809
'local_kaltura' => 2015120909
);
6 changes: 3 additions & 3 deletions local/kaltura/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ function xmldb_local_kaltura_upgrade($oldversion) {
}

// Kaltura savepoint reached.
upgrade_plugin_savepoint(true, 2015101809, 'local', 'kaltura');
upgrade_plugin_savepoint(true, 2015120909, 'local', 'kaltura');
$savePointDone = true;
}

if (!$savePointDone && $oldversion < 2015101809) {
if (!$savePointDone && $oldversion < 2015120909) {
// Kaltura savepoint reached.
upgrade_plugin_savepoint(true, 2015101809, 'local', 'kaltura');
upgrade_plugin_savepoint(true, 2015120909, 'local', 'kaltura');
}
return true;
}
4 changes: 2 additions & 2 deletions local/kaltura/tests/locallib_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ public function test_local_kaltura_get_kaf_publishing_data_for_non_admin() {
$json .= ',{"courseId":"'.$coursetwo->id.'","courseName":"'.$coursetwo->fullname.'","roles":"Learner"}';
$json .= ',{"courseId":"'.$coursefour->id.'","courseName":"'.$coursefour->fullname.'","roles":"Instructor"}]}';

$this->assertEquals($json, $result);
$this->assertEquals(base64_encode($json), $result);
}

/**
Expand Down Expand Up @@ -1046,7 +1046,7 @@ public function test_local_kaltura_get_kaf_publishing_data_for_admin() {
$json .= ',{"courseId":"'.$coursethree->id.'","courseName":"'.$coursethree->fullname.'","roles":"urn:lti:sysrole:ims\/lis\/Administrator"}';
$json .= ',{"courseId":"'.$coursefour->id.'","courseName":"'.$coursefour->fullname.'","roles":"urn:lti:sysrole:ims\/lis\/Administrator"}]}';

$this->assertEquals($json, $result);
$this->assertEquals(base64_encode($json), $result);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion local/kaltura/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
die('Direct access to this script is forbidden.');
}

$plugin->version = 2015101809;
$plugin->version = 2015120909;
$plugin->component = 'local_kaltura';
$plugin->release = 'Kaltura release 4.0.08';
$plugin->requires = 2014050800;
Expand Down
2 changes: 1 addition & 1 deletion local/kalturamediagallery/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* @param global_navigation $navigation a global_navigation object
* @return void
*/
function local_kalturamediagallery_extends_navigation($navigation) {
function local_kalturamediagallery_extend_navigation($navigation) {
global $USER, $PAGE, $DB;

if (empty($USER->id)) {
Expand Down
4 changes: 2 additions & 2 deletions local/kalturamediagallery/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
die('Direct access to this script is forbidden.');
}

$plugin->version = 2015101809;
$plugin->version = 2015120909;
$plugin->component = 'local_kalturamediagallery';
$plugin->release = 'Kaltura release 4.0.08';
$plugin->requires = 2014050800;
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = array(
'local_kaltura' => 2015101809
'local_kaltura' => 2015120909
);
2 changes: 1 addition & 1 deletion local/mymedia/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* @param global_navigation $navigation a global_navigation object
* @return void
*/
function local_mymedia_extends_navigation($navigation) {
function local_mymedia_extend_navigation($navigation) {
global $USER, $DB, $PAGE;

if (empty($USER->id)) {
Expand Down
4 changes: 2 additions & 2 deletions local/mymedia/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
die('Direct access to this script is forbidden.');
}

$plugin->version = 2015101809;
$plugin->version = 2015120909;
$plugin->component = 'local_mymedia';
$plugin->release = 'Kaltura release 4.0.08';
$plugin->requires = 2014050800;
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = array(
'local_kaltura' => 2015101809
'local_kaltura' => 2015120909
);
Binary file modified mod/kalvidassign/pix/icon.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mod/kalvidassign/pix/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 13 additions & 20 deletions mod/kalvidassign/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ public function col_status($data) {
}

$buttontext = '';
// Check if the user submitted the assignment.
$submitted = !is_null($data->timemarked);

if ($data->timemarked > 0) {
$class = 's1';
$buttontext = get_string('update');
Expand All @@ -366,6 +369,11 @@ public function col_status($data) {
$buttontext = get_string('grade');
}

if (!$submitted) {
$class ='s1';
$buttontext = get_string('nosubmission', 'kalvidassign');
}

$attr = array('id' => 'up'.$data->id,
'class' => $class);

Expand Down Expand Up @@ -727,11 +735,11 @@ public function display_submissions_table($cm, $groupfilter = 0, $filter = 'all'

// Compare student who have submitted to the assignment with students who are
// currently enrolled in the course
$students = kalvidassign_get_assignment_students($cm);
$users = array_intersect(array_keys($users), array_keys($students));
$students = array_keys(kalvidassign_get_assignment_students($cm));
$users = array_intersect(array_keys($users), $students);

if (empty($users)) {
echo html_writer::tag('p', get_string('nosubmissionsforgrading', 'kalvidassign'));
if (empty($students)) {
echo html_writer::tag('p', get_string('noenrolledstudents', 'kalvidassign'));
return;
}

Expand Down Expand Up @@ -781,21 +789,6 @@ public function display_submissions_table($cm, $groupfilter = 0, $filter = 'all'
// No groups, do nothing
break;
case SEPARATEGROUPS:
// If separate groups, but displaying all users then we must display only users
// who are in the same group as the current user
if (0 == $groupfilter) {
$groupscolumn = ', gm.groupid ';
$groupsjoin = ' RIGHT JOIN {groups_members} gm ON gm.userid = u.id RIGHT JOIN {groups} g ON g.id = gm.groupid ';

$param['courseid'] = $cm->course;
$groupswhere .= ' AND g.courseid = :courseid ';

$param['groupid'] = $groupfilter;
$groupswhere .= ' AND g.id IN ('.$groupids.') ';

}
break;

case VISIBLEGROUPS:
// if visible groups but displaying a specific group then we must display users within
// that group, if displaying all groups then display all users in the course
Expand All @@ -821,7 +814,7 @@ public function display_submissions_table($cm, $groupfilter = 0, $filter = 'all'
$columns = user_picture::fields('u').', kvs.id AS submitid, ';
$columns .= ' kvs.grade, kvs.submissioncomment, kvs.timemodified, kvs.entry_id, kvs.source, kvs.width, kvs.height, kvs.timemarked, ';
$columns .= 'kvs.metadata, 1 AS status, 1 AS selectgrade'.$groupscolumn;
$where .= ' u.deleted = 0 AND u.id IN ('.implode(',', $users).') '.$groupswhere;
$where .= ' u.deleted = 0 AND u.id IN ('.implode(',', $students).') '.$groupswhere;

$param['instanceid'] = $cm->instance;
$from = "{user} u LEFT JOIN {kalvidassign_submission} kvs ON kvs.userid = u.id AND kvs.vidassignid = :instanceid ".$groupsjoin;
Expand Down
4 changes: 2 additions & 2 deletions mod/kalvidassign/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
die('Direct access to this script is forbidden.');
}

$module->version = 2015101809;
$module->version = 2015120909;
$module->component = 'mod_kalvidassign';
$module->release = 'Kaltura release 4.0.08';
$module->requires = 2014050800;
$module->cron = 0;
$module->maturity = MATURITY_STABLE;
$module->dependencies = array(
'local_kaltura' => 2015101809,
'local_kaltura' => 2015120909,
);
Binary file modified mod/kalvidpres/pix/icon.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mod/kalvidpres/pix/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions mod/kalvidpres/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
die('Direct access to this script is forbidden.');
}

$module->version = 2015101809;
$module->version = 2015120909;
$module->component = 'mod_kalvidpres';
$module->release = 'Kaltura release 4.0.08';
$module->requires = 2014050800;
$module->cron = 0;
$module->maturity = MATURITY_STABLE;
$module->dependencies = array(
'local_kaltura' => 2015101809
'local_kaltura' => 2015120909
);
1 change: 1 addition & 0 deletions mod/kalvidres/mod_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public function definition() {
$this->add_intro_editor(false);

$mform->addElement('header', 'video', get_string('video_hdr', 'kalvidres'));
$mform->setExpanded('video',true);
$this->add_video_definition($mform);

$this->standard_coursemodule_elements();
Expand Down
Binary file modified mod/kalvidres/pix/icon.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mod/kalvidres/pix/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions mod/kalvidres/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
die('Direct access to this script is forbidden.');
}

$module->version = 2015101809;
$module->version = 2015120909;
$module->component = 'mod_kalvidres';
$module->release = 'Kaltura release 4.0.08';
$module->requires = 2014050800;
$module->cron = 0;
$module->maturity = MATURITY_STABLE;
$module->dependencies = array(
'local_kaltura' => 2015101809
'local_kaltura' => 2015120909
);

0 comments on commit 8700b50

Please sign in to comment.