-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
2.2.3
-
MOODLE_22_STABLE
Environment
---------------------------------------------------------------------------------
Moodle 2.2.3+ (Build: 20120519)
Simple clock block version 2011051300
Description of the issue(s)
---------------------------------------------------------------------------------
By default, the block shows icons for the 'Server' and for 'You'. The former displays the site's favicon, and the latter displays the user's profile image.
If, however, your favicon is in .ico format then it cannot be displayed by default in Internet Explorer - I tested IE8 and IE9 (see attached image: IE9 cannot render ico file.png").
According to http://en.wikipedia.org/wiki/Favicon#Standardisation, "In 2003, the .ico format was registered with the Internet Assigned Numbers Authority (IANA) under the MIME type image/vnd.microsoft.icon. When using the .ico format, Internet Explorer cannot display files served with the standardized MIME type."
Workarounds
---------------------------------------------------------------------------------
1. Associate .ico with the non-standard image/x-icon MIME type in Web servers: see https://github.com/paulirish/html5-boilerplate/commit/37b5fec090d00f38de64b591bcddcb205aadf8ee for example
2. Don't use the .ico format for the favicon, use a .png for example - this may also have limitations (see http://en.wikipedia.org/wiki/Favicon#File_format_support)
Resolution
---------------------------------------------------------------------------------
We decided to simply use a generic server icon rather than applying apache config changes across different instances (workaround #1).
1. I have added a settings page for the block so that the site administrator can choose to use the generic icon if they find themselves in the same case as myself. By default this option is turned "off" so that the existing behaviour remains the default behaviour.
2. I have chosen what is hopefully an acceptable generic server icon (licensed LGPL, found at http://www.iconfinder.com/icondetails/1563/16/computer_hosting_server_icon).
If there is another solution, or a better way to go about this, I would love to hear it!
Patch and github repo
---------------------------------------------------------------------------------
Links to be provided in comments section once I get a tracker number for this issue