Skip to content

Commit 085062a

Browse files
authored
Merge pull request #852 from catalyst/fix-tempdir-default-39
fix: set the tempdirdefault on the setting itself instead of inside a lang string
2 parents b622433 + 1210392 commit 085062a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lang/en/auth_saml2.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@
186186
$string['status'] = 'Status';
187187
$string['suspendeduser'] = 'You have logged in successfully as \'{$a}\' but your account has been suspended in Moodle.';
188188
$string['taskmetadatarefresh'] = 'Metadata refresh task';
189+
$string['tempdir'] = 'SimpleSAMLphp temporary directory';
190+
$string['tempdir_help'] = 'A directory where SimpleSAMLphp can save temporary files';
189191
$string['test_auth_button_login'] = 'IdP Login';
190192
$string['test_auth_button_logout'] = 'IdP Logout';
191193
$string['test_auth_str'] = 'Test isAuthenticated and login';

settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,12 +367,12 @@
367367
1,
368368
$yesno));
369369

370-
// SAMLPHP tempdir
370+
// SAMLPHP tempdir.
371371
$settings->add(new admin_setting_configtext(
372372
'auth_saml2/tempdir',
373373
get_string('tempdir', 'auth_saml2'),
374374
get_string('tempdir_help', 'auth_saml2'),
375-
get_string('tempdirdefault', 'auth_saml2'),
375+
'/tmp/simplesaml',
376376
PARAM_TEXT,
377377
50,
378378
3));

0 commit comments

Comments
 (0)