Skip to content

Commit 1cd391b

Browse files
committed
Fix language strings
1 parent 0570325 commit 1cd391b

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

edit_form.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,14 @@ protected function specific_definition($mform) {
4545

4646
$mform->addElement('text', 'config_carousselspeed', get_string('carousselspeed', 'block_rss_thumbnails'));
4747
$mform->setDefault('config_carousselspeed', block_rss_thumbnails::DEFAULT_CAROUSSEL_SPEED);
48+
$mform->setType('config_carousselspeed', PARAM_INT);
4849

4950
$mform->addElement('selectyesno', 'config_show_channel_link', get_string('clientshowchannellinklabel', 'block_rss_client'));
50-
$mform->setDefault('config_show_channel_link', 0);
51+
$mform->setDefault('config_show_channel_link', false);
52+
$mform->setType('config_show_channel_link', PARAM_BOOL);
5153

52-
$mform->addElement('selectyesno', 'config_remove_image_size_suffix', get_string('removeimagesizesuffix', 'block_rss_client'));
53-
$mform->setDefault('config_remove_image_size_suffix', 0);
54+
$mform->addElement('selectyesno', 'config_remove_image_size_suffix', get_string('removeimagesizesuffix', 'block_rss_thumbnails'));
55+
$mform->setDefault('config_remove_image_size_suffix', false);
56+
$mform->setType('config_remove_image_size_suffix', PARAM_BOOL);
5457
}
5558
}

lang/en/block_rss_thumbnails.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@
2727
$string['pluginname'] = 'RSS Thumnail';
2828
$string['title'] = 'RSS Thumnail';
2929
$string['carousselspeed'] = 'Caroussel speed';
30+
$string['removeimagesizesuffix'] = 'Remove image size suffix (wordpress RSS).';

0 commit comments

Comments
 (0)