Last modified: 2006-02-03 04:04:24 UTC
Everytime after new installations, I have to patch function initpage.php in module Skin.php to adapt MediaWiki according to me needs- my wikis' favicons' live in their _script_ paths. To make it better configurable, I propose to implement one of two methods. (1) drop the constant filename in Skin::initpage and change it to become another variable $wgFaviconPath of DefaultSettings.php function initPage( &$out ) { ... global $wgFaviconPath $out->addLink( array( 'rel' => 'shortcut icon', 'href' => $wgFaviconPath ) ); (2) (alternative method) change the filename to become dependent on the current $wgScriptPath, so that every Wiki installation can have its own favicon.ico in its script path function initPage( &$out ) { ... global $wgScriptPath; $out->addLink( array( 'rel' => 'shortcut icon', 'href' => $wgScriptPath . '/favicon.ico' ) ); [ Because of the alternatives, I did not attach a regular patch file ]
[corr]Everytime after new installations, I have to patch function initpage.php in module Skin.php to adapt MediaWiki according to my needs - my wikis' favicons live in their _script_ paths.
My inclination is to stick in a $wgFaviconPath. The only reason we have the link tag in there is that Mozilla requires it to follow the preexisting (IE-based) /favicon.ico convention.
(In reply to comment #2) > My inclination is to stick in a $wgFaviconPath. Brion: can you do so please ?
Created attachment 1259 [details] Implementing $wgFavicon Enables configuring favicon by changing $wgFavicon. # I think $wgFavicon looks prettier with $wgLogo, rather than $wgFaviconPath.
Applied to CVS HEAD for 1.6.