* (bug 4303) Add $wgFavicon to change the shorticon icon link from
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 3 Feb 2006 04:04:05 +0000 (04:04 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Fri, 3 Feb 2006 04:04:05 +0000 (04:04 +0000)
  the default /favicon.ico or disable it (if set to false)
  Patch by nekocue

RELEASE-NOTES
includes/DefaultSettings.php
includes/Skin.php

index e82a350..9160a62 100644 (file)
@@ -589,6 +589,8 @@ fully support the editing toolbar, but was found to be too confusing.
   and seems to work ok with other bits. No longer including the IE
   workarounds JavaScript for IE 7 and above.
 * Fix extra namespace for Bulgarian
+* (bug 4303) Add $wgFavicon to change the shorticon icon link from
+  the default /favicon.ico or disable it (if set to false)
 
 
 === Caveats ===
index 87dba3b..3607018 100644 (file)
@@ -118,6 +118,7 @@ $wgUploadPath       = "{$wgScriptPath}/upload";
 $wgUploadDirectory     = "{$IP}/upload";
 $wgHashedUploadDirectory       = true;
 $wgLogo                                = "{$wgUploadPath}/wiki.png";
+$wgFavicon                     = '/favicon.ico';
 $wgMathPath         = "{$wgUploadPath}/math";
 $wgMathDirectory    = "{$wgUploadDirectory}/math";
 $wgTmpDirectory     = "{$wgUploadDirectory}/tmp";
index 09f39e4..b2e56df 100644 (file)
@@ -156,10 +156,14 @@ class Skin extends Linker {
        }
 
        function initPage( &$out ) {
+               global $wgFavicon;
+
                $fname = 'Skin::initPage';
                wfProfileIn( $fname );
 
-               $out->addLink( array( 'rel' => 'shortcut icon', 'href' => '/favicon.ico' ) );
+               if( false !== $wgFavicon ) {
+                       $out->addLink( array( 'rel' => 'shortcut icon', 'href' => $wgFavicon ) );
+               }
 
                $this->addMetadataLinks($out);