Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 296... Línea 296...
296
        // Before displaying the button check that Shibboleth is set-up correctly.
296
        // Before displaying the button check that Shibboleth is set-up correctly.
297
        if (empty($config->user_attribute)) {
297
        if (empty($config->user_attribute)) {
298
            return $result;
298
            return $result;
299
        }
299
        }
Línea 300... Línea 300...
300
 
300
 
Línea 301... Línea 301...
301
        $url = new moodle_url('/auth/shibboleth/index.php');
301
        $context = \core\context\system::instance();
302
 
302
 
303
        if ($config->auth_logo) {
303
        if ($config->auth_logo) {
304
            $iconurl = moodle_url::make_pluginfile_url(
304
            $iconurl = moodle_url::make_pluginfile_url(
305
                context_system::instance()->id,
305
                $context->id,
306
                'auth_shibboleth',
306
                'auth_shibboleth',
307
                'logo',
307
                'logo',
308
                null,
308
                null,
309
                null,
309
                null,
310
                $config->auth_logo);
310
                $config->auth_logo);
311
        } else {
311
        } else {
Línea -... Línea 312...
-
 
312
            $iconurl = null;
312
            $iconurl = null;
313
        }
-
 
314
 
-
 
315
        $result[] = [
-
 
316
            'url' => new moodle_url('/auth/shibboleth/index.php'),
-
 
317
            'iconurl' => $iconurl,
313
        }
318
            'name' => format_string($config->login_name ?? '', options: ['context' => $context]),
314
 
319
        ];
315
        $result[] = ['url' => $url, 'iconurl' => $iconurl, 'name' => $config->login_name];
320