mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
MDL-24954 fixed inverted guest icons
This commit is contained in:
parent
c79fd8a91e
commit
8365e25f6b
1 changed files with 2 additions and 2 deletions
|
@ -46,9 +46,9 @@ class enrol_guest_plugin extends enrol_plugin {
|
||||||
public function get_info_icons(array $instances) {
|
public function get_info_icons(array $instances) {
|
||||||
foreach ($instances as $instance) {
|
foreach ($instances as $instance) {
|
||||||
if ($instance->password) {
|
if ($instance->password) {
|
||||||
return array(new pix_icon('withoutpassword', get_string('pluginname', 'enrol_guest'), 'enrol_guest'));
|
|
||||||
} else {
|
|
||||||
return array(new pix_icon('withpassword', get_string('pluginname', 'enrol_guest'), 'enrol_guest'));
|
return array(new pix_icon('withpassword', get_string('pluginname', 'enrol_guest'), 'enrol_guest'));
|
||||||
|
} else {
|
||||||
|
return array(new pix_icon('withoutpassword', get_string('pluginname', 'enrol_guest'), 'enrol_guest'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue