Skip to content

Commit

Permalink
Merge pull request #852 from catalyst/fix-tempdir-default-39
Browse files Browse the repository at this point in the history
fix: set the tempdirdefault on the setting itself instead of inside a lang string
  • Loading branch information
danmarsden authored Dec 10, 2024
2 parents b622433 + 1210392 commit 085062a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lang/en/auth_saml2.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@
$string['status'] = 'Status';
$string['suspendeduser'] = 'You have logged in successfully as \'{$a}\' but your account has been suspended in Moodle.';
$string['taskmetadatarefresh'] = 'Metadata refresh task';
$string['tempdir'] = 'SimpleSAMLphp temporary directory';
$string['tempdir_help'] = 'A directory where SimpleSAMLphp can save temporary files';
$string['test_auth_button_login'] = 'IdP Login';
$string['test_auth_button_logout'] = 'IdP Logout';
$string['test_auth_str'] = 'Test isAuthenticated and login';
Expand Down
4 changes: 2 additions & 2 deletions settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,12 @@
1,
$yesno));

// SAMLPHP tempdir
// SAMLPHP tempdir.
$settings->add(new admin_setting_configtext(
'auth_saml2/tempdir',
get_string('tempdir', 'auth_saml2'),
get_string('tempdir_help', 'auth_saml2'),
get_string('tempdirdefault', 'auth_saml2'),
'/tmp/simplesaml',
PARAM_TEXT,
50,
3));
Expand Down

0 comments on commit 085062a

Please sign in to comment.