mirror of
https://github.com/moodle/moodle.git
synced 2025-06-02 14:15:11 +02:00
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:
parent
792c711e8a
commit
026f377993
@ -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',
|
||||
|
@ -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',
|
||||
|
@ -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).
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user