Issue #49 - Changed default settings param type from TEXT to RAW_TRIMMED for 'default description' and 'css'.

This commit is contained in:
Daniel Thee Roperto
2016-09-25 13:29:33 +10:00
parent 09c8c645c5
commit 2fd8b307a6
2 changed files with 3 additions and 4 deletions

View File

@@ -62,14 +62,14 @@ if ($hassiteconfig && is_enabled_auth('outage')) {
get_string('defaultdescription', 'auth_outage'),
get_string('defaultdescriptiondescription', 'auth_outage'),
$defaults['default_description'],
PARAM_TEXT
PARAM_RAW_TRIMMED
));
$settings->add(new admin_setting_configtextarea(
'auth_outage/css',
get_string('defaultlayoutcss', 'auth_outage'),
get_string('defaultlayoutcssdescription', 'auth_outage'),
$defaults['css'],
PARAM_TEXT
PARAM_RAW_TRIMMED
));
// Create category for Outage.
$ADMIN->add('authsettings', new admin_category('auth_outage', get_string('pluginname', 'auth_outage')));

View File

@@ -24,7 +24,6 @@ Feature: Test changing the default settings.
| s_auth_outage_default_title | <title> |
| s_auth_outage_default_description | <description> |
| s_auth_outage_css | <css> |
And I wait "600" seconds
And I press "Save changes"
Then I should see "Changes saved"
When I visit the Create Outage Page
@@ -39,7 +38,7 @@ Feature: Test changing the default settings.
Examples:
| autostart | warning | duration | title | description | css |
# | 1 | 15 | 30 | An Outage | My outage until {stop}. | /* Some CSS. */ |
| 1 | 15 | 30 | An Outage | My outage until {stop}. | /* Some CSS. */ |
| 0 | 30 | 45 | My Behat Outage {start} | My outage with <b>HTML</b>. | /* More CSS. */ |