mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-58220 auth: $OUTPUT -> $output
Don't use global $OUTPUT when there is a more specific renderer.
This commit is contained in:
parent
d9fbe3146c
commit
e25362a7db
1 changed files with 2 additions and 3 deletions
|
@ -121,13 +121,12 @@ class login implements renderable, templatable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function export_for_template(renderer_base $output) {
|
public function export_for_template(renderer_base $output) {
|
||||||
global $CFG, $OUTPUT;
|
global $CFG;
|
||||||
|
|
||||||
$identityproviders = array_map(function($idp) use ($output) {
|
$identityproviders = array_map(function($idp) use ($output) {
|
||||||
global $OUTPUT;
|
|
||||||
|
|
||||||
if (!empty($idp['icon'])) {
|
if (!empty($idp['icon'])) {
|
||||||
$idp['iconurl'] = $OUTPUT->pix_url($idp['icon']->key, $idp['icon']->component);
|
$idp['iconurl'] = $output->pix_url($idp['icon']->key, $idp['icon']->component);
|
||||||
} else if ($idp['iconurl'] instanceof moodle_url) {
|
} else if ($idp['iconurl'] instanceof moodle_url) {
|
||||||
$idp['iconurl'] = $idp['iconurl']->out(false);
|
$idp['iconurl'] = $idp['iconurl']->out(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue