MDL-78884 theme: Update references to $icon.png

The *.png files in pix/f folder have been removed, so their references
need to be updated to use the proper SVG file or a different icon, as
happened with logo_uri for oauth2 services.
This commit is contained in:
Sara Arjona 2023-08-18 11:47:22 +02:00
parent 792c711e8a
commit 026f377993
No known key found for this signature in database
4 changed files with 4 additions and 4 deletions

View File

@ -134,7 +134,7 @@ class imsbadgeconnect extends base_definition {
$request = [
'client_name' => $SITE->fullname,
'client_uri' => $hosturl,
'logo_uri' => $hosturl . 'pix/f/moodle-256.png',
'logo_uri' => $hosturl . 'pix/moodlelogo.png',
'tos_uri' => $hosturl,
'policy_uri' => $hosturl,
'software_id' => 'moodle',

View File

@ -135,7 +135,7 @@ class moodlenet implements issuer_interface {
$request = [
'client_name' => $SITE->fullname,
'client_uri' => $hosturl,
'logo_uri' => $hosturl . '/pix/f/moodle-256.png',
'logo_uri' => $hosturl . '/pix/moodlelogo.png',
'tos_uri' => $hosturl,
'policy_uri' => $hosturl,
'software_id' => 'moodle',

View File

@ -2709,7 +2709,7 @@ function send_stored_file($storedfile, $lifetime=null, $filter=0, $forcedownload
if (!$previewfile) {
// Unable to create a preview of the file, send its default mime icon instead.
$fileicon = file_file_icon($storedfile);
send_file($CFG->dirroot.'/pix/'.$fileicon.'.png', basename($fileicon).'.png');
send_file($CFG->dirroot.'/pix/'.$fileicon.'.svg', basename($fileicon).'.svg');
} else {
// preview images have fixed cache lifetime and they ignore forced download
// (they are generated by GD and therefore they are considered reasonably safe).

View File

@ -45,4 +45,4 @@ if ($thumbnailavailable) {
// Send default icon for the file type.
$fileicon = file_extension_icon($source);
send_file($CFG->dirroot . '/pix/' . $fileicon . '.png', basename($fileicon) . '.png');
send_file($CFG->dirroot . '/pix/' . $fileicon . '.png', basename($fileicon) . '.svg');