Skip to content

Commit

Permalink
Fixed the upgradation and icon broken issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nithy1anand committed Aug 9, 2023
1 parent a5645a2 commit baa1917
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 9 deletions.
10 changes: 6 additions & 4 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -804,10 +804,12 @@ function xmldb_videotime_upgrade($oldversion) {
'1',
'completion_hide_detail'
);

// Launch change of default for field show_description_in_player.
$dbman->change_field_default($table, $field);

if ($dbman->field_exists($table, $field)) {
// Launch change of default for field show_description_in_player.
$dbman->change_field_default($table, $field);
} else {
$dbman->add_field($table, $field);
}
$DB->set_field('videotime', 'show_description_in_player', 1, ['show_description_in_player' => null]);

// Videotime savepoint reached.
Expand Down
2 changes: 1 addition & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ function videotime_extend_settings_navigation($settings, $videtimenode) {
$node = navigation_node::create(get_string('embed_options', 'mod_videotime'),
new moodle_url('/mod/videotime/options.php', array('id' => $PAGE->cm->id)),
navigation_node::TYPE_SETTING, null, 'mod_videotime_options',
new pix_icon('t/play', ''));
new pix_icon('play', '', 'mod_videotime'));
$videtimenode->add_node($node, $beforekey);
}
if (videotime_has_pro() && $PAGE->cm && has_capability('mod/videotime:view_report', $PAGE->cm->context)) {
Expand Down
Binary file added pix/play.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions pix/play.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -871,8 +871,9 @@ body.format-topics:not(.editing) .modtype_videotime.preview_mode .actions {
.pagelayout-incourse #page #region-main {
overflow: auto;
}
.course-content ul.topics li.section .content.block-content {
padding: 15px;
.path-mod-videotime .block_settings .block_tree p.hasicon img {
width: auto;
margin-right: 3px;
}

@media (min-width: 992px) {
Expand Down
2 changes: 1 addition & 1 deletion tab/texttrack/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

$plugin->component = 'videotimetab_texttrack';
$plugin->release = '1.7';
$plugin->version = 2022022800;
$plugin->version = 2023080900;
$plugin->requires = 2015111610;
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = [
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

$plugin->component = 'mod_videotime';
$plugin->release = '1.7.2';
$plugin->version = 2023073100;
$plugin->version = 2023080900;
$plugin->incompatible = 402;
$plugin->requires = 2015111610;
$plugin->maturity = MATURITY_STABLE;

0 comments on commit baa1917

Please sign in to comment.