mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Fixed two errors that prevented the shibboleth settings from being saved unless
a file for the data modification api was given
This commit is contained in:
parent
439aad511a
commit
0d3703f0e8
1 changed files with 4 additions and 1 deletions
|
@ -174,6 +174,8 @@ class auth_plugin_shibboleth extends auth_plugin_base {
|
|||
* @param object $config Configuration object
|
||||
*/
|
||||
function process_config($config) {
|
||||
global $CFG;
|
||||
|
||||
// set to defaults if undefined
|
||||
if (!isset($config->auth_instructions) or empty($config->user_attribute)) {
|
||||
$config->auth_instructions = get_string('shibboleth_instructions', 'auth', $CFG->wwwroot.'/auth/shibboleth/index.php');
|
||||
|
@ -195,7 +197,8 @@ class auth_plugin_shibboleth extends auth_plugin_base {
|
|||
set_config('changepasswordurl', $config->changepasswordurl, 'auth/shibboleth');
|
||||
|
||||
// Check values and return false if something is wrong
|
||||
if (!file_exists($config->convert_data) || !is_readable($config->convert_data)){
|
||||
// Patch Anyware Technologies (14/05/07)
|
||||
if (($config->convert_data != '')&&(!file_exists($config->convert_data) || !is_readable($config->convert_data))){
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue